struct VertexOutput { @builtin(position) position: vec4f, @location(0) tex_coord: vec2f, } @vertex fn vertex_main(@location(0) position: vec2f) -> VertexOutput { var output: VertexOutput; output.position = vec4f(position, 0.0, 1.0); output.tex_coord = (position * 0.5) + vec2f(0.5, 0.5); return output; }