2021-07-23 13:10:12 +00:00
|
|
|
struct buf1 {
|
2022-03-28 14:31:22 +00:00
|
|
|
ten : i32,
|
2022-03-21 16:09:17 +00:00
|
|
|
}
|
2021-07-23 13:10:12 +00:00
|
|
|
|
|
|
|
struct buf0 {
|
2022-03-28 14:31:22 +00:00
|
|
|
minusEight : i32,
|
2022-03-21 16:09:17 +00:00
|
|
|
}
|
2021-07-23 13:10:12 +00:00
|
|
|
|
2022-01-19 22:46:57 +00:00
|
|
|
@group(0) @binding(1) var<uniform> x_8 : buf1;
|
2021-07-23 13:10:12 +00:00
|
|
|
|
2022-01-19 22:46:57 +00:00
|
|
|
@group(0) @binding(0) var<uniform> x_10 : buf0;
|
2021-07-23 13:10:12 +00:00
|
|
|
|
|
|
|
var<private> x_GLF_color : vec4<f32>;
|
|
|
|
|
|
|
|
fn main_1() {
|
|
|
|
var a : i32;
|
|
|
|
var b : i32;
|
|
|
|
var i : i32;
|
|
|
|
a = 0;
|
|
|
|
b = 0;
|
|
|
|
i = 0;
|
|
|
|
loop {
|
|
|
|
let x_36 : i32 = i;
|
|
|
|
let x_38 : i32 = x_8.ten;
|
|
|
|
if ((x_36 < x_38)) {
|
|
|
|
} else {
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
let x_41 : i32 = a;
|
|
|
|
if ((x_41 > 5)) {
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
let x_46 : i32 = x_10.minusEight;
|
|
|
|
let x_48 : i32 = a;
|
|
|
|
a = (x_48 + (x_46 / -4));
|
|
|
|
let x_50 : i32 = b;
|
|
|
|
b = (x_50 + 1);
|
|
|
|
|
|
|
|
continuing {
|
|
|
|
let x_52 : i32 = i;
|
|
|
|
i = (x_52 + 1);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
let x_54 : i32 = b;
|
|
|
|
if ((x_54 == 3)) {
|
|
|
|
x_GLF_color = vec4<f32>(1.0, 0.0, 0.0, 1.0);
|
|
|
|
} else {
|
|
|
|
x_GLF_color = vec4<f32>(0.0, 0.0, 0.0, 0.0);
|
|
|
|
}
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
struct main_out {
|
2022-01-19 22:46:57 +00:00
|
|
|
@location(0)
|
2022-03-28 14:31:22 +00:00
|
|
|
x_GLF_color_1 : vec4<f32>,
|
2022-03-21 16:09:17 +00:00
|
|
|
}
|
2021-07-23 13:10:12 +00:00
|
|
|
|
2022-01-19 22:46:57 +00:00
|
|
|
@stage(fragment)
|
2021-07-23 13:10:12 +00:00
|
|
|
fn main() -> main_out {
|
|
|
|
main_1();
|
|
|
|
return main_out(x_GLF_color);
|
|
|
|
}
|