1 2 3 4 5 6 7 8 9 10 11
struct VertexInput { @location(0) position: vec2<f32>, } @vertex fn vertex_main( model: VertexInput, ) -> @builtin(position) vec4<f32> { return vec4<f32>(model.position, 0.0, 1.0); }