@group(0) @binding(0) var myTexture: texture_2d; struct VertexOutput { @builtin(position) Position : vec4, @location(0) fragUV : vec2 }; @fragment fn main(data: VertexOutput) -> @location(0) vec4 { var d: vec2 = vec2(textureDimensions(myTexture, 0)); let c = textureLoad(myTexture, vec2(data.fragUV*d), 0).rgb; return vec4(c, 1.0); }