blob: 4c09abf620ac9200183a7734b439446339ef425a [file] [log] [blame]
cbuffer _UniformBuffer : register(b0, space0)
{
float4 _17_src : packoffset(c0);
float4 _17_dst : packoffset(c1);
};
static float4 sk_FragColor;
struct SPIRV_Cross_Output
{
float4 sk_FragColor : SV_Target0;
};
static float _kGuardedDivideEpsilon = 0.0f;
float color_burn_component_Qhh2h2(float2 _23, float2 _24)
{
if (_24.y == _24.x)
{
return ((_23.y * _24.y) + (_23.x * (1.0f - _24.y))) + (_24.x * (1.0f - _23.y));
}
else
{
if (_23.x == 0.0f)
{
return _24.x * (1.0f - _23.y);
}
else
{
float _68 = max(0.0f, _24.y - (((_24.y - _24.x) * _23.y) / (_23.x + _kGuardedDivideEpsilon)));
float delta = _68;
return ((_68 * _23.y) + (_23.x * (1.0f - _24.y))) + (_24.x * (1.0f - _23.y));
}
}
}
void frag_main()
{
_kGuardedDivideEpsilon = false ? 9.9999999392252902907785028219223e-09f : 0.0f;
float2 _111 = _17_src.xw;
float2 _116 = _17_dst.xw;
float2 _121 = _17_src.yw;
float2 _125 = _17_dst.yw;
float2 _130 = _17_src.zw;
float2 _134 = _17_dst.zw;
sk_FragColor = float4(color_burn_component_Qhh2h2(_111, _116), color_burn_component_Qhh2h2(_121, _125), color_burn_component_Qhh2h2(_130, _134), _17_src.w + ((1.0f - _17_src.w) * _17_dst.w));
}
SPIRV_Cross_Output main()
{
frag_main();
SPIRV_Cross_Output stage_output;
stage_output.sk_FragColor = sk_FragColor;
return stage_output;
}