RetroArch/deps/SPIRV-Cross/reference/shaders-no-opt/asm/comp/atomic-result-temporary.asm.comp

19 lines
299 B
Plaintext

#version 450
layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
layout(binding = 0, std430) buffer SSBO
{
uint count;
uint data[];
} _5;
void main()
{
uint _24 = atomicAdd(_5.count, 1u);
if (_24 < 1024u)
{
_5.data[_24] = gl_GlobalInvocationID.x;
}
}