Debian Codegraph @

third_party/spirv-cross/reference/opt/shaders-hlsl/comp/barriers.comp

raw
1 static const uint3 gl_WorkGroupSize = uint3(4u, 1u, 1u);
2
3 void comp_main()
4 {
5 GroupMemoryBarrier();
6 AllMemoryBarrier();
7 DeviceMemoryBarrier();
8 DeviceMemoryBarrier();
9 AllMemoryBarrier();
10 GroupMemoryBarrierWithGroupSync();
11 AllMemoryBarrier();
12 GroupMemoryBarrierWithGroupSync();
13 DeviceMemoryBarrier();
14 GroupMemoryBarrierWithGroupSync();
15 DeviceMemoryBarrier();
16 GroupMemoryBarrierWithGroupSync();
17 AllMemoryBarrier();
18 GroupMemoryBarrierWithGroupSync();
19 GroupMemoryBarrierWithGroupSync();
20 }
21
22 [numthreads(4, 1, 1)]
23 void main()
24 {
25 comp_main();
26 }