Files
wgpu/tests/gpu-tests/texture_binding/single_scalar.wgsl
2025-02-23 14:06:34 -05:00

8 lines
252 B
WebGPU Shading Language

@group(0) @binding(0)
var tex_w: texture_storage_2d<rgba32float, write>;
@group(0) @binding(1)
var tex_r: texture_storage_2d<r32float, read>;
@compute @workgroup_size(1) fn csStore() {
textureStore(tex_w, vec2u(0), textureLoad(tex_r, vec2u(0)));
}