@vertex fn vs_main(@location(0) idx: u32) -> @builtin(position) vec4 { var vertex: array, 4>; vertex[0] = vec2(-1.0, -1.0); vertex[1] = vec2(1.0, -1.0); vertex[2] = vec2(-0.8, 1.0); vertex[3] = vec2(0.8, 1.0); return vec4(vertex[idx], 0.0, 1.0); } @fragment fn fs_main() -> @location(0) vec4 { return vec4(1.0, 1.0, 1.0, 1.0); }