2023-02-21 17:33:54 +00:00
|
|
|
var<private> pos : vec4<f32>;
|
2021-07-23 13:10:12 +00:00
|
|
|
|
|
|
|
var<private> frag_color : vec4<f32>;
|
|
|
|
|
|
|
|
var<private> gl_Position : vec4<f32>;
|
|
|
|
|
|
|
|
fn main_1() {
|
2023-02-21 17:33:54 +00:00
|
|
|
let x_21 : vec4<f32> = pos;
|
2021-07-23 13:10:12 +00:00
|
|
|
gl_Position = x_21;
|
2023-02-21 17:33:54 +00:00
|
|
|
let x_23 : vec4<f32> = pos;
|
2021-07-23 13:10:12 +00:00
|
|
|
frag_color = (x_23 * 0.5);
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
struct main_out {
|
2022-01-19 22:46:57 +00:00
|
|
|
@builtin(position)
|
2022-03-28 14:31:22 +00:00
|
|
|
gl_Position : vec4<f32>,
|
2022-01-19 22:46:57 +00:00
|
|
|
@location(1)
|
2022-03-28 14:31:22 +00:00
|
|
|
frag_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
|
|
|
@vertex
|
2022-01-19 22:46:57 +00:00
|
|
|
fn main(@location(0) position_param : vec4<f32>) -> main_out {
|
2023-02-21 17:33:54 +00:00
|
|
|
pos = position_param;
|
2021-07-23 13:10:12 +00:00
|
|
|
main_1();
|
|
|
|
return main_out(gl_Position, frag_color);
|
|
|
|
}
|