Debian Codegraph @

third_party/spirv-cross/reference/shaders-hlsl-no-opt/asm/comp/atomic-result-temporary.asm.comp

raw
1 RWByteAddressBuffer _5 : register(u0);
2
3 static uint3 gl_GlobalInvocationID;
4 struct SPIRV_Cross_Input
5 {
6 uint3 gl_GlobalInvocationID : SV_DispatchThreadID;
7 };
8
9 void comp_main()
10 {
11 uint _24;
12 _5.InterlockedAdd(0, 1u, _24);
13 if (_24 < 1024u)
14 {
15 _5.Store(_24 * 4 + 4, gl_GlobalInvocationID.x);
16 }
17 }
18
19 [numthreads(1, 1, 1)]
20 void main(SPIRV_Cross_Input stage_input)
21 {
22 gl_GlobalInvocationID = stage_input.gl_GlobalInvocationID;
23 comp_main();
24 }