struct VertexOutput { @builtin(position) position : vec4, @location(0) color : vec3, } @vertex fn main( @location(0) position : vec3, @location(1) color : vec3 ) -> VertexOutput { var output: VertexOutput; output.position = vec4(position, 1.0); output.color = color; return output; }