| enable atomic_vec2u_min_max; | |
| @group(0) @binding(0) var<storage, read_write> sb_rw0 : array<atomic<vec2<u32>>, 4>; | |
| @group(0) @binding(1) var<storage, read_write> sb_rw1 : array<atomic<vec2<u32>>>; | |
| @compute @workgroup_size(1) | |
| fn compute_main() { | |
| var in_vec = vec2<u32>(1u, 2u); | |
| atomicStoreMax(&(sb_rw0[1]), in_vec); | |
| atomicStoreMax(&(sb_rw1[1]), in_vec); | |
| } |