blob: 3b238a0438528ac2ab0f9b72675f230b082136e0 [file] [log] [blame]
Alastair Donaldsonf7e73d42021-07-23 13:10:12 +00001struct buf0 {
James Price3b671cb2022-03-28 14:31:22 +00002 zero : i32,
James Price1a72a762022-03-21 16:09:17 +00003}
Alastair Donaldsonf7e73d42021-07-23 13:10:12 +00004
Ben Clayton01e4b6f2022-01-19 22:46:57 +00005@group(0) @binding(0) var<uniform> x_6 : buf0;
Alastair Donaldsonf7e73d42021-07-23 13:10:12 +00006
7var<private> x_GLF_color : vec4<f32>;
8
9fn main_1() {
10 var a : i32;
11 let x_25 : i32 = x_6.zero;
12 a = x_25;
13 let x_26 : i32 = a;
14 if ((x_26 == 0)) {
15 let x_31 : i32 = a;
16 a = (x_31 + 1);
17 } else {
18 let x_33 : i32 = a;
19 a = (x_33 + 1);
20 }
21 let x_35 : i32 = a;
22 if ((x_35 == 1)) {
23 x_GLF_color = vec4<f32>(1.0, 0.0, 0.0, 1.0);
24 } else {
25 x_GLF_color = vec4<f32>(0.0, 0.0, 0.0, 0.0);
26 }
27 return;
28}
29
30struct main_out {
Ben Clayton01e4b6f2022-01-19 22:46:57 +000031 @location(0)
James Price3b671cb2022-03-28 14:31:22 +000032 x_GLF_color_1 : vec4<f32>,
James Price1a72a762022-03-21 16:09:17 +000033}
Alastair Donaldsonf7e73d42021-07-23 13:10:12 +000034
dan sinclairb29892b2022-06-07 13:55:34 +000035@fragment
Alastair Donaldsonf7e73d42021-07-23 13:10:12 +000036fn main() -> main_out {
37 main_1();
38 return main_out(x_GLF_color);
39}