• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1type Arr = [[stride(16)]] array<i32, 2>;
2
3[[block]]
4struct buf0 {
5  x_GLF_uniform_int_values : Arr;
6};
7
8type Arr_1 = [[stride(16)]] array<f32, 2>;
9
10[[block]]
11struct buf1 {
12  x_GLF_uniform_float_values : Arr_1;
13};
14
15var<private> x_GLF_color : vec4<f32>;
16
17[[group(0), binding(0)]] var<uniform> x_5 : buf0;
18
19[[group(0), binding(1)]] var<uniform> x_8 : buf1;
20
21fn main_1() {
22  var a : f32;
23  let x_10 : i32 = x_5.x_GLF_uniform_int_values[0];
24  let x_11 : i32 = x_5.x_GLF_uniform_int_values[1];
25  let x_12 : i32 = x_5.x_GLF_uniform_int_values[1];
26  let x_13 : i32 = x_5.x_GLF_uniform_int_values[0];
27  x_GLF_color = vec4<f32>(f32(x_10), f32(x_11), f32(x_12), f32(x_13));
28  let x_45 : f32 = x_8.x_GLF_uniform_float_values[1];
29  a = (-0x1.8p+128 % x_45);
30  let x_47 : f32 = a;
31  let x_49 : f32 = x_8.x_GLF_uniform_float_values[0];
32  if ((x_47 != x_49)) {
33    let x_54 : f32 = x_8.x_GLF_uniform_float_values[0];
34    x_GLF_color.y = x_54;
35  }
36  return;
37}
38
39struct main_out {
40  [[location(0)]]
41  x_GLF_color_1 : vec4<f32>;
42};
43
44[[stage(fragment)]]
45fn main() -> main_out {
46  main_1();
47  return main_out(x_GLF_color);
48}
49