third_party/spirv-cross/reference/shaders-hlsl-no-opt/asm/comp/buffer-atomic-nonuniform.asm.sm51.nonuniformresource.comp
raw| 1 | RWByteAddressBuffer ssbos[] : register(u0, space0); |
| 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 = gl_GlobalInvocationID.z; |
| 12 | uint _25; |
| 13 | ssbos[NonUniformResourceIndex(_24)].InterlockedAdd(0, 1u, _25); |
| 14 | } |
| 15 | |
| 16 | [numthreads(1, 1, 1)] |
| 17 | void main(SPIRV_Cross_Input stage_input) |
| 18 | { |
| 19 | gl_GlobalInvocationID = stage_input.gl_GlobalInvocationID; |
| 20 | comp_main(); |
| 21 | } |