SPIRV-Cross/reference/opt/shaders/comp/barriers.comp
2018-01-09 12:26:46 +01:00

29 lines
578 B
Plaintext

#version 310 es
layout(local_size_x = 4, local_size_y = 1, local_size_z = 1) in;
void main()
{
memoryBarrierShared();
memoryBarrier();
memoryBarrierImage();
memoryBarrierBuffer();
groupMemoryBarrier();
memoryBarrierShared();
barrier();
memoryBarrier();
memoryBarrierShared();
barrier();
memoryBarrierImage();
memoryBarrierShared();
barrier();
memoryBarrierBuffer();
memoryBarrierShared();
barrier();
groupMemoryBarrier();
memoryBarrierShared();
barrier();
memoryBarrierShared();
barrier();
}