SPIRV-Cross/reference/opt/shaders-hlsl/comp/barriers.comp

27 lines
599 B
Plaintext
Raw Normal View History

2018-03-24 03:16:18 +00:00
static const uint3 gl_WorkGroupSize = uint3(4u, 1u, 1u);
void comp_main()
{
2018-01-09 11:41:13 +00:00
GroupMemoryBarrier();
AllMemoryBarrier();
DeviceMemoryBarrier();
DeviceMemoryBarrier();
2018-01-09 11:41:13 +00:00
AllMemoryBarrier();
GroupMemoryBarrierWithGroupSync();
AllMemoryBarrier();
GroupMemoryBarrierWithGroupSync();
DeviceMemoryBarrier();
2018-01-09 11:41:13 +00:00
GroupMemoryBarrierWithGroupSync();
DeviceMemoryBarrier();
2018-01-09 11:41:13 +00:00
GroupMemoryBarrierWithGroupSync();
AllMemoryBarrier();
GroupMemoryBarrierWithGroupSync();
GroupMemoryBarrierWithGroupSync();
}
[numthreads(4, 1, 1)]
void main()
{
comp_main();
}