• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1cbuffer _UniformBuffer : register(b0, space0)
2{
3    float4 _10_colorGreen : packoffset(c0);
4    float4 _10_colorRed : packoffset(c1);
5};
6
7
8static float4 sk_FragColor;
9
10struct SPIRV_Cross_Output
11{
12    float4 sk_FragColor : SV_Target0;
13};
14
15float4 main(float2 _24)
16{
17    bool ok = true;
18    bool _41 = false;
19    if (true)
20    {
21        _41 = (_10_colorGreen.y == 1.0f) ? true : false;
22    }
23    else
24    {
25        _41 = false;
26    }
27    ok = _41;
28    bool _49 = false;
29    if (_41)
30    {
31        _49 = (_10_colorGreen.x == 1.0f) ? false : true;
32    }
33    else
34    {
35        _49 = false;
36    }
37    ok = _49;
38    bool _63 = false;
39    if (_49)
40    {
41        _63 = all(bool2(_10_colorGreen.yx.x == _10_colorRed.xy.x, _10_colorGreen.yx.y == _10_colorRed.xy.y)) ? true : false;
42    }
43    else
44    {
45        _63 = false;
46    }
47    ok = _63;
48    bool _75 = false;
49    if (_63)
50    {
51        _75 = any(bool2(_10_colorGreen.yx.x != _10_colorRed.xy.x, _10_colorGreen.yx.y != _10_colorRed.xy.y)) ? false : true;
52    }
53    else
54    {
55        _75 = false;
56    }
57    ok = _75;
58    float4 _76 = 0.0f.xxxx;
59    if (_75)
60    {
61        _76 = _10_colorGreen;
62    }
63    else
64    {
65        _76 = _10_colorRed;
66    }
67    return _76;
68}
69
70void frag_main()
71{
72    float2 _20 = 0.0f.xx;
73    sk_FragColor = main(_20);
74}
75
76SPIRV_Cross_Output main()
77{
78    frag_main();
79    SPIRV_Cross_Output stage_output;
80    stage_output.sk_FragColor = sk_FragColor;
81    return stage_output;
82}
83