blob: ad83063d7c663361cc2d43cab860cabb0fb92edd [file] [log] [blame]
Alastair Donaldsonf7e73d42021-07-23 13:10:12 +00001var<private> gl_FragCoord : vec4<f32>;
2
3var<private> x_GLF_color : vec4<f32>;
4
5fn 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
15struct main_out {
Ben Clayton01e4b6f2022-01-19 22:46:57 +000016 @location(0)
Alastair Donaldsonf7e73d42021-07-23 13:10:12 +000017 x_GLF_color_1 : vec4<f32>;
18};
19
Ben Clayton01e4b6f2022-01-19 22:46:57 +000020@stage(fragment)
21fn main(@builtin(position) gl_FragCoord_param : vec4<f32>) -> main_out {
Alastair Donaldsonf7e73d42021-07-23 13:10:12 +000022 gl_FragCoord = gl_FragCoord_param;
23 main_1();
24 return main_out(x_GLF_color);
25}