@vertex fn vs_main(@builtin(vertex_index) vertexIndex: u32) -> @builtin(position) vec4 { let uv: vec2 = vec2(f32((vertexIndex << 1u) & 2u), f32(vertexIndex & 2u)); return vec4(uv * 2.0 - 1.0, 0.0, 1.0); } @group(0) @binding(0) var tex: texture_2d; @fragment fn fs_main(@builtin(position) coord: vec4) -> @location(0) vec4 { return textureLoad(tex, vec2(coord.xy), 0); }