• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1cbuffer _UniformBuffer : register(b0, space0)
2{
3    float4 _17_src : packoffset(c0);
4    float4 _17_dst : packoffset(c1);
5};
6
7
8static float4 sk_FragColor;
9
10struct SPIRV_Cross_Output
11{
12    float4 sk_FragColor : SV_Target0;
13};
14
15static float _kGuardedDivideEpsilon = 0.0f;
16
17float color_burn_component_Qhh2h2(float2 _23, float2 _24)
18{
19    if (_24.y == _24.x)
20    {
21        return ((_23.y * _24.y) + (_23.x * (1.0f - _24.y))) + (_24.x * (1.0f - _23.y));
22    }
23    else
24    {
25        if (_23.x == 0.0f)
26        {
27            return _24.x * (1.0f - _23.y);
28        }
29        else
30        {
31            float _68 = max(0.0f, _24.y - (((_24.y - _24.x) * _23.y) / (_23.x + _kGuardedDivideEpsilon)));
32            float delta = _68;
33            return ((_68 * _23.y) + (_23.x * (1.0f - _24.y))) + (_24.x * (1.0f - _23.y));
34        }
35    }
36}
37
38void frag_main()
39{
40    _kGuardedDivideEpsilon = false ? 9.9999999392252902907785028219223e-09f : 0.0f;
41    float2 _111 = _17_src.xw;
42    float2 _116 = _17_dst.xw;
43    float2 _121 = _17_src.yw;
44    float2 _125 = _17_dst.yw;
45    float2 _130 = _17_src.zw;
46    float2 _134 = _17_dst.zw;
47    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));
48}
49
50SPIRV_Cross_Output main()
51{
52    frag_main();
53    SPIRV_Cross_Output stage_output;
54    stage_output.sk_FragColor = sk_FragColor;
55    return stage_output;
56}
57