When compiling GLSL programs that used atomic counters to SPIR-v (glslangValidator -V …) I encounter:
‘atomic counter types’ : not allowed when using GLSL for Vulkan.
The code:
uniform atomic_uint counter
So, how do we use atomic counters with Vulkan?