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

11 lines
194 B
WebGPU Shading Language
Raw Permalink Normal View History

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