dawn-cmake/test/tint/builtins/gen/var/atomicExchange/e114ba.wgsl.expected.wgsl

12 lines
214 B
WebGPU Shading Language
Raw Normal View History

var<workgroup> arg_0 : atomic<i32>;
fn atomicExchange_e114ba() {
var arg_1 = 1;
var res : i32 = atomicExchange(&(arg_0), arg_1);
}
@compute @workgroup_size(1)
fn compute_main() {
atomicExchange_e114ba();
}