dawn-cmake/test/tint/builtins/atomicStore/array/array.wgsl

7 lines
121 B
WebGPU Shading Language

var<workgroup> wg : array<atomic<u32>, 4>;
@compute @workgroup_size(1)
fn compute_main() {
atomicStore(&wg[1], 1u);
}