SPIRV-Cross/reference/shaders-hlsl-no-opt/asm/comp/atomic-load-store.asm.comp

19 lines
294 B
Plaintext
Raw Normal View History

static const uint3 gl_WorkGroupSize = uint3(1u, 1u, 1u);
RWByteAddressBuffer _5 : register(u0);
void comp_main()
{
uint _20;
_5.InterlockedAdd(4, 0, _20);
uint c = _20;
uint _23;
_5.InterlockedExchange(0, c, _23);
}
[numthreads(1, 1, 1)]
void main()
{
comp_main();
}