2022-03-21 16:09:17 +00:00
|
|
|
struct strided_arr {
|
|
|
|
@size(16)
|
2022-03-28 14:31:22 +00:00
|
|
|
el : f32,
|
2022-03-21 16:09:17 +00:00
|
|
|
}
|
|
|
|
|
2023-01-24 14:55:17 +00:00
|
|
|
alias Arr = array<strided_arr, 1u>;
|
2021-07-23 13:10:12 +00:00
|
|
|
|
|
|
|
struct buf0 {
|
2022-03-28 14:31:22 +00:00
|
|
|
x_GLF_uniform_float_values : Arr,
|
2022-03-21 16:09:17 +00:00
|
|
|
}
|
2021-07-23 13:10:12 +00:00
|
|
|
|
|
|
|
struct buf1 {
|
2022-03-28 14:31:22 +00:00
|
|
|
v1 : vec2<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
|
|
|
@group(0) @binding(0) var<uniform> x_6 : buf0;
|
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
|
|
|
|
|
|
|
var<private> x_GLF_color : vec4<f32>;
|
|
|
|
|
|
|
|
fn main_1() {
|
|
|
|
var m24 : mat2x2<f32>;
|
|
|
|
var a : f32;
|
|
|
|
var v2 : vec2<f32>;
|
|
|
|
var v3 : vec2<f32>;
|
2022-03-21 16:09:17 +00:00
|
|
|
let x_40 : f32 = x_6.x_GLF_uniform_float_values[0].el;
|
|
|
|
let x_42 : f32 = x_6.x_GLF_uniform_float_values[0].el;
|
2021-07-23 13:10:12 +00:00
|
|
|
let x_44 : f32 = x_8.v1.x;
|
2022-03-21 16:09:17 +00:00
|
|
|
let x_47 : f32 = x_6.x_GLF_uniform_float_values[0].el;
|
2021-07-23 13:10:12 +00:00
|
|
|
m24 = mat2x2<f32>(vec2<f32>(x_40, x_42), vec2<f32>((x_44 * 1.0), x_47));
|
|
|
|
let x_51 : mat2x2<f32> = m24;
|
|
|
|
a = x_51[0u].x;
|
2022-05-31 21:35:00 +00:00
|
|
|
v2 = vec2<f32>(1.0, 1.0);
|
2021-07-23 13:10:12 +00:00
|
|
|
let x_53 : vec2<f32> = v2;
|
|
|
|
let x_54 : f32 = a;
|
2022-03-21 16:09:17 +00:00
|
|
|
let x_55 : vec2<f32> = vec2<f32>(x_54, 1.0);
|
|
|
|
v3 = reflect(x_53, x_55);
|
|
|
|
let x_58 : f32 = x_6.x_GLF_uniform_float_values[0].el;
|
2021-07-23 13:10:12 +00:00
|
|
|
let x_59 : vec2<f32> = v3;
|
2022-03-21 16:09:17 +00:00
|
|
|
let x_61 : f32 = x_6.x_GLF_uniform_float_values[0].el;
|
2021-07-23 13:10:12 +00:00
|
|
|
x_GLF_color = vec4<f32>(x_58, x_59.x, x_59.y, x_61);
|
|
|
|
let x_66 : f32 = x_8.v1.y;
|
2022-03-21 16:09:17 +00:00
|
|
|
let x_68 : f32 = x_6.x_GLF_uniform_float_values[0].el;
|
2021-07-23 13:10:12 +00:00
|
|
|
if ((x_66 == x_68)) {
|
|
|
|
let x_73 : vec4<f32> = x_GLF_color;
|
|
|
|
x_GLF_color = vec4<f32>(x_73.x, vec2<f32>(0.0, 0.0).x, vec2<f32>(0.0, 0.0).y, x_73.w);
|
|
|
|
} 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-06-07 13:55:34 +00:00
|
|
|
@fragment
|
2021-07-23 13:10:12 +00:00
|
|
|
fn main() -> main_out {
|
|
|
|
main_1();
|
|
|
|
return main_out(x_GLF_color);
|
|
|
|
}
|