dawn-cmake/test/intrinsics/gen/atomicExchange/0a5dca.wgsl.expected.hlsl

14 lines
246 B
HLSL
Raw Normal View History

groupshared uint arg_0;
void atomicExchange_0a5dca() {
uint atomic_result = 0u;
InterlockedExchange(arg_0, 1u, atomic_result);
uint res = atomic_result;
}
[numthreads(1, 1, 1)]
void compute_main() {
atomicExchange_0a5dca();
return;
}