Alastair Donaldson | f7e73d4 | 2021-07-23 13:10:12 +0000 | [diff] [blame] | 1 | var<private> gl_FragCoord : vec4<f32>; |
| 2 | |
| 3 | var<private> x_GLF_color : vec4<f32>; |
| 4 | |
| 5 | fn main_1() { |
| 6 | let x_22 : f32 = gl_FragCoord.x; |
| 7 | if (((x_22 < 0.0) || true)) { |
| 8 | x_GLF_color = vec4<f32>(1.0, 0.0, 0.0, 1.0); |
| 9 | } else { |
| 10 | x_GLF_color = vec4<f32>(0.0, 0.0, 0.0, 0.0); |
| 11 | } |
| 12 | return; |
| 13 | } |
| 14 | |
| 15 | struct main_out { |
Ben Clayton | 01e4b6f | 2022-01-19 22:46:57 +0000 | [diff] [blame] | 16 | @location(0) |
Alastair Donaldson | f7e73d4 | 2021-07-23 13:10:12 +0000 | [diff] [blame] | 17 | x_GLF_color_1 : vec4<f32>; |
| 18 | }; |
| 19 | |
Ben Clayton | 01e4b6f | 2022-01-19 22:46:57 +0000 | [diff] [blame] | 20 | @stage(fragment) |
| 21 | fn main(@builtin(position) gl_FragCoord_param : vec4<f32>) -> main_out { |
Alastair Donaldson | f7e73d4 | 2021-07-23 13:10:12 +0000 | [diff] [blame] | 22 | gl_FragCoord = gl_FragCoord_param; |
| 23 | main_1(); |
| 24 | return main_out(x_GLF_color); |
| 25 | } |