dawn-cmake/test/tint/builtins/gen/atomicExchange/0a5dca.wgsl.expected.wgsl

11 lines
201 B
WebGPU Shading Language

var<workgroup> arg_0 : atomic<u32>;
fn atomicExchange_0a5dca() {
var res : u32 = atomicExchange(&(arg_0), 1u);
}
@stage(compute) @workgroup_size(1)
fn compute_main() {
atomicExchange_0a5dca();
}