• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1[[block]]
2struct buf0 {
3  one : i32;
4};
5
6[[group(0), binding(0)]] var<uniform> x_5 : buf0;
7
8var<private> x_GLF_color : vec4<f32>;
9
10fn main_1() {
11  let x_23 : i32 = x_5.one;
12  let x_25 : i32 = x_5.one;
13  let x_27 : i32 = x_5.one;
14  if ((max(x_23, clamp(x_25, x_27, 1)) == 1)) {
15    x_GLF_color = vec4<f32>(1.0, 0.0, 0.0, 1.0);
16  } else {
17    x_GLF_color = vec4<f32>(1.0, 1.0, 1.0, 1.0);
18  }
19  return;
20}
21
22struct main_out {
23  [[location(0)]]
24  x_GLF_color_1 : vec4<f32>;
25};
26
27[[stage(fragment)]]
28fn main() -> main_out {
29  main_1();
30  return main_out(x_GLF_color);
31}
32