@group(1) @binding(0) var arg_0: texture_2d; fn textureLoad2d(texture: texture_2d, coords: vec2, level: i32) -> vec4 { return textureLoad(texture, coords, level); } fn doTextureLoad() { var res: vec4 = textureLoad2d(arg_0, vec2(), 0); } @vertex fn vertex_main() -> @builtin(position) vec4 { doTextureLoad(); return vec4(); } @fragment fn fragment_main() { doTextureLoad(); } @compute @workgroup_size(1) fn compute_main() { doTextureLoad(); }