2021-07-01 02:20:11 +00:00
|
|
|
struct VertexOutput {
|
2024-03-28 17:19:51 +00:00
|
|
|
@builtin(position) gl_Position: vec4<f32>,
|
2022-03-27 06:56:34 +00:00
|
|
|
}
|
2021-07-01 02:20:11 +00:00
|
|
|
|
2021-11-09 14:24:41 +00:00
|
|
|
var<private> a_pos_1: vec2<f32>;
|
2021-07-01 02:20:11 +00:00
|
|
|
var<private> gl_Position: vec4<f32>;
|
|
|
|
|
2021-11-09 14:24:41 +00:00
|
|
|
fn main_1() {
|
2021-11-26 16:32:00 +00:00
|
|
|
let _e5 = a_pos_1;
|
2023-12-12 19:30:03 +00:00
|
|
|
let _e10 = clamp(_e5, vec2(0f), vec2(1f));
|
|
|
|
gl_Position = vec4<f32>(_e10.x, _e10.y, 0f, 1f);
|
2021-07-01 02:20:11 +00:00
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
2022-04-15 09:55:38 +00:00
|
|
|
@vertex
|
2022-01-19 15:33:06 +00:00
|
|
|
fn main(@location(0) a_pos: vec2<f32>) -> VertexOutput {
|
2021-11-09 14:24:41 +00:00
|
|
|
a_pos_1 = a_pos;
|
|
|
|
main_1();
|
2021-11-26 16:32:00 +00:00
|
|
|
let _e5 = gl_Position;
|
2021-11-23 13:36:48 +00:00
|
|
|
return VertexOutput(_e5);
|
2021-07-01 02:20:11 +00:00
|
|
|
}
|