Alastair Donaldson | f7e73d4 | 2021-07-23 13:10:12 +0000 | [diff] [blame] | 1 | [[block]] |
| 2 | struct buf1 { |
| 3 | v1 : vec2<f32>; |
| 4 | }; |
| 5 | |
| 6 | type Arr = [[stride(16)]] array<i32, 2>; |
| 7 | |
| 8 | [[block]] |
| 9 | struct buf0 { |
| 10 | x_GLF_uniform_int_values : Arr; |
| 11 | }; |
| 12 | |
| 13 | [[group(0), binding(1)]] var<uniform> x_6 : buf1; |
| 14 | |
| 15 | var<private> x_GLF_color : vec4<f32>; |
| 16 | |
| 17 | [[group(0), binding(0)]] var<uniform> x_8 : buf0; |
| 18 | |
| 19 | fn main_1() { |
| 20 | var b : bool; |
| 21 | b = true; |
| 22 | let x_38 : f32 = x_6.v1.x; |
| 23 | let x_40 : f32 = x_6.v1.y; |
| 24 | if ((x_38 > x_40)) { |
| 25 | let x_45 : f32 = x_6.v1.x; |
| 26 | let x_47 : f32 = x_6.v1.y; |
| 27 | if ((x_45 < x_47)) { |
| 28 | b = false; |
| 29 | } |
| 30 | } |
| 31 | let x_51 : bool = b; |
| 32 | if (x_51) { |
| 33 | let x_10 : i32 = x_8.x_GLF_uniform_int_values[0]; |
| 34 | let x_11 : i32 = x_8.x_GLF_uniform_int_values[1]; |
| 35 | let x_12 : i32 = x_8.x_GLF_uniform_int_values[1]; |
| 36 | let x_13 : i32 = x_8.x_GLF_uniform_int_values[0]; |
| 37 | x_GLF_color = vec4<f32>(f32(x_10), f32(x_11), f32(x_12), f32(x_13)); |
| 38 | } else { |
| 39 | let x_14 : i32 = x_8.x_GLF_uniform_int_values[1]; |
| 40 | let x_65 : f32 = f32(x_14); |
| 41 | x_GLF_color = vec4<f32>(x_65, x_65, x_65, x_65); |
| 42 | } |
| 43 | return; |
| 44 | } |
| 45 | |
| 46 | struct main_out { |
| 47 | [[location(0)]] |
| 48 | x_GLF_color_1 : vec4<f32>; |
| 49 | }; |
| 50 | |
| 51 | [[stage(fragment)]] |
| 52 | fn main() -> main_out { |
| 53 | main_1(); |
| 54 | return main_out(x_GLF_color); |
| 55 | } |