@group(0) @binding(0) var viewProjectionMatrix : mat4x4; @group(0) @binding(1) var myTexture : texture_2d; @group(0) @binding(2) var mySampler : sampler; struct VertexOutput { @builtin(position) position : vec4, @location(0) uv : vec2, }; @vertex fn vertexEntryPoint( @location(0) position : vec3, @location(1) uv : vec2 ) -> VertexOutput { var output : VertexOutput; output.position = viewProjectionMatrix * vec4(position, 1.0); output.uv = uv; return output; } @fragment fn fragmentEntryPoint( @location(0) uv : vec2 ) -> @location(0) vec4 { let color = textureSample(myTexture, mySampler, uv); return vec4(color.rgb, 1.0); }