third_party/spirv-cross/reference/opt/shaders/asm/comp/atomic-increment.asm.comp
raw| 1 | #version 450 |
| 2 | layout(local_size_x = 4, local_size_y = 1, local_size_z = 1) in; |
| 3 | |
| 4 | layout(binding = 0, std430) buffer u0_counters |
| 5 | { |
| 6 | uint c; |
| 7 | } u0_counter; |
| 8 | |
| 9 | layout(binding = 0, r32ui) uniform writeonly uimageBuffer u0; |
| 10 | |
| 11 | void main() |
| 12 | { |
| 13 | uint _29 = atomicAdd(u0_counter.c, 1u); |
| 14 | imageStore(u0, floatBitsToInt(uintBitsToFloat(_29)), uvec4(uint(int(gl_GlobalInvocationID.x)))); |
| 15 | } |
| 16 |