RWByteAddressBuffer _7 : register(u0);

static uint3 gl_GlobalInvocationID;
struct SPIRV_Cross_Input
{
    uint3 gl_GlobalInvocationID : SV_DispatchThreadID;
};

void comp_main()
{
    uint _19;
    _7.InterlockedAdd(0, 1u, _19);
    if (_19 < 1024u)
    {
        _7.Store(_19 * 4 + 4, gl_GlobalInvocationID.x);
    }
}

[numthreads(1, 1, 1)]
void main(SPIRV_Cross_Input stage_input)
{
    gl_GlobalInvocationID = stage_input.gl_GlobalInvocationID;
    comp_main();
}
