| 1 |
RWByteAddressBuffer u0_counter : register(u1); |
| 2 |
RWBuffer<uint> u0 : register(u0); |
| 3 |
|
| 4 |
static uint3 gl_GlobalInvocationID; |
| 5 |
struct SPIRV_Cross_Input |
| 6 |
{ |
| 7 |
uint3 gl_GlobalInvocationID : SV_DispatchThreadID; |
| 8 |
}; |
| 9 |
|
| 10 |
void comp_main() |
| 11 |
{ |
| 12 |
uint _29; |
| 13 |
u0_counter.InterlockedAdd(0, 1, _29); |
| 14 |
u0[asint(asfloat(_29))] = uint(int(gl_GlobalInvocationID.x)).x; |
| 15 |
} |
| 16 |
|
| 17 |
[numthreads(4, 1, 1)] |
| 18 |
void main(SPIRV_Cross_Input stage_input) |
| 19 |
{ |
| 20 |
gl_GlobalInvocationID = stage_input.gl_GlobalInvocationID; |
| 21 |
comp_main(); |
| 22 |
} |