Alastair Donaldson | f7e73d4 | 2021-07-23 13:10:12 +0000 | [diff] [blame] | 1 | cbuffer cbuffer_x_6 : register(b0, space0) { |
| 2 | uint4 x_6[1]; |
| 3 | }; |
| 4 | static float4 x_GLF_color = float4(0.0f, 0.0f, 0.0f, 0.0f); |
| 5 | |
| 6 | void main_1() { |
| 7 | int i = 0; |
| 8 | const int x_26 = asint(x_6[0].x); |
| 9 | i = x_26; |
| 10 | while (true) { |
| 11 | if ((i > 0)) { |
| 12 | } else { |
| 13 | break; |
| 14 | } |
| 15 | i = (i - 1); |
| 16 | i = (i - 1); |
| 17 | } |
| 18 | if ((i == -1)) { |
| 19 | x_GLF_color = float4(1.0f, 0.0f, 0.0f, 1.0f); |
| 20 | } else { |
| 21 | x_GLF_color = float4(0.0f, 0.0f, 0.0f, 0.0f); |
| 22 | } |
| 23 | return; |
| 24 | } |
| 25 | |
| 26 | struct main_out { |
| 27 | float4 x_GLF_color_1; |
| 28 | }; |
| 29 | struct tint_symbol { |
| 30 | float4 x_GLF_color_1 : SV_Target0; |
| 31 | }; |
| 32 | |
James Price | a5d73ce | 2021-08-04 22:15:28 +0000 | [diff] [blame^] | 33 | main_out main_inner() { |
Alastair Donaldson | f7e73d4 | 2021-07-23 13:10:12 +0000 | [diff] [blame] | 34 | main_1(); |
James Price | a5d73ce | 2021-08-04 22:15:28 +0000 | [diff] [blame^] | 35 | const main_out tint_symbol_2 = {x_GLF_color}; |
| 36 | return tint_symbol_2; |
| 37 | } |
| 38 | |
| 39 | tint_symbol main() { |
| 40 | const main_out inner_result = main_inner(); |
| 41 | tint_symbol wrapper_result = (tint_symbol)0; |
| 42 | wrapper_result.x_GLF_color_1 = inner_result.x_GLF_color_1; |
| 43 | return wrapper_result; |
Alastair Donaldson | f7e73d4 | 2021-07-23 13:10:12 +0000 | [diff] [blame] | 44 | } |