1 # Verify simple usage of the barrier function
7 GL_ARB_shader_atomic_counters
11 #extension GL_ARB_compute_shader: enable
12 #extension GL_ARB_shader_atomic_counters: require
14 layout(binding = 0) uniform atomic_uint a0;
15 layout(binding = 0) uniform atomic_uint a1;
17 layout(local_size_x = 64, local_size_y = 16) in;
21 atomicCounterIncrement(a0);
23 memoryBarrierAtomicCounter();
26 if (atomicCounter(a0) == 1024u) {
27 atomicCounterIncrement(a1);
35 probe atomic counter 0 == 1024
36 probe atomic counter 1 == 1024