| 1 |
RWTexture2D<uint> uImage[] : 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 _26 = gl_GlobalInvocationID.z; |
| 12 |
uint _31; |
| 13 |
InterlockedAdd(uImage[NonUniformResourceIndex(_26)][int2(gl_GlobalInvocationID.xy)], 1u, _31); |
| 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 |
} |