• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1cbuffer _UniformBuffer : register(b0, space0)
2{
3    float4 _15_colorGreen : packoffset(c0);
4    float4 _15_colorRed : packoffset(c1);
5};
6
7
8static float4 sk_FragColor;
9
10struct SPIRV_Cross_Output
11{
12    float4 sk_FragColor : SV_Target0;
13};
14
15bool test_return_b()
16{
17    do
18    {
19        return true;
20    } while (false);
21}
22
23bool test_break_b()
24{
25    do
26    {
27        break;
28    } while (false);
29    return true;
30}
31
32bool test_continue_b()
33{
34    do
35    {
36    } while (false);
37    return true;
38}
39
40bool test_if_return_b()
41{
42    do
43    {
44        if (_15_colorGreen.y > 0.0f)
45        {
46            return true;
47        }
48        else
49        {
50            break;
51        }
52    } while (false);
53    return false;
54}
55
56bool test_if_break_b()
57{
58    do
59    {
60        if (_15_colorGreen.y > 0.0f)
61        {
62            break;
63        }
64        else
65        {
66            continue;
67        }
68    } while (false);
69    return true;
70}
71
72bool test_else_b()
73{
74    do
75    {
76        if (_15_colorGreen.y == 0.0f)
77        {
78            return false;
79        }
80        else
81        {
82            return true;
83        }
84    } while (false);
85}
86
87bool test_loop_return_b()
88{
89    return true;
90}
91
92bool test_loop_break_b()
93{
94    for (int x = 0; !(x <= 1); x++)
95    {
96        break;
97    }
98    return true;
99}
100
101float4 main(float2 _107)
102{
103    bool _113 = false;
104    if (test_return_b())
105    {
106        _113 = test_break_b();
107    }
108    else
109    {
110        _113 = false;
111    }
112    bool _117 = false;
113    if (_113)
114    {
115        _117 = test_continue_b();
116    }
117    else
118    {
119        _117 = false;
120    }
121    bool _121 = false;
122    if (_117)
123    {
124        _121 = test_if_return_b();
125    }
126    else
127    {
128        _121 = false;
129    }
130    bool _125 = false;
131    if (_121)
132    {
133        _125 = test_if_break_b();
134    }
135    else
136    {
137        _125 = false;
138    }
139    bool _129 = false;
140    if (_125)
141    {
142        _129 = test_else_b();
143    }
144    else
145    {
146        _129 = false;
147    }
148    bool _133 = false;
149    if (_129)
150    {
151        _133 = test_loop_return_b();
152    }
153    else
154    {
155        _133 = false;
156    }
157    bool _137 = false;
158    if (_133)
159    {
160        _137 = test_loop_break_b();
161    }
162    else
163    {
164        _137 = false;
165    }
166    float4 _138 = 0.0f.xxxx;
167    if (_137)
168    {
169        _138 = _15_colorGreen;
170    }
171    else
172    {
173        _138 = _15_colorRed;
174    }
175    return _138;
176}
177
178void frag_main()
179{
180    float2 _25 = 0.0f.xx;
181    sk_FragColor = main(_25);
182}
183
184SPIRV_Cross_Output main()
185{
186    frag_main();
187    SPIRV_Cross_Output stage_output;
188    stage_output.sk_FragColor = sk_FragColor;
189    return stage_output;
190}
191