mirror of
https://github.com/libretro/RetroArch
synced 2025-02-13 03:40:33 +00:00
- https://github.com/KhronosGroup/SPIRV-Cross/commit/ 66a407285e36a0f772e3209cb86ded6e3d900f6a
82 lines
1.1 KiB
Plaintext
82 lines
1.1 KiB
Plaintext
static const uint3 gl_WorkGroupSize = uint3(4u, 1u, 1u);
|
|
|
|
void barrier_shared()
|
|
{
|
|
GroupMemoryBarrier();
|
|
}
|
|
|
|
void full_barrier()
|
|
{
|
|
AllMemoryBarrier();
|
|
}
|
|
|
|
void image_barrier()
|
|
{
|
|
DeviceMemoryBarrier();
|
|
}
|
|
|
|
void buffer_barrier()
|
|
{
|
|
DeviceMemoryBarrier();
|
|
}
|
|
|
|
void group_barrier()
|
|
{
|
|
AllMemoryBarrier();
|
|
}
|
|
|
|
void barrier_shared_exec()
|
|
{
|
|
GroupMemoryBarrierWithGroupSync();
|
|
}
|
|
|
|
void full_barrier_exec()
|
|
{
|
|
AllMemoryBarrier();
|
|
GroupMemoryBarrierWithGroupSync();
|
|
}
|
|
|
|
void image_barrier_exec()
|
|
{
|
|
DeviceMemoryBarrier();
|
|
GroupMemoryBarrierWithGroupSync();
|
|
}
|
|
|
|
void buffer_barrier_exec()
|
|
{
|
|
DeviceMemoryBarrier();
|
|
GroupMemoryBarrierWithGroupSync();
|
|
}
|
|
|
|
void group_barrier_exec()
|
|
{
|
|
AllMemoryBarrier();
|
|
GroupMemoryBarrierWithGroupSync();
|
|
}
|
|
|
|
void exec_barrier()
|
|
{
|
|
GroupMemoryBarrierWithGroupSync();
|
|
}
|
|
|
|
void comp_main()
|
|
{
|
|
barrier_shared();
|
|
full_barrier();
|
|
image_barrier();
|
|
buffer_barrier();
|
|
group_barrier();
|
|
barrier_shared_exec();
|
|
full_barrier_exec();
|
|
image_barrier_exec();
|
|
buffer_barrier_exec();
|
|
group_barrier_exec();
|
|
exec_barrier();
|
|
}
|
|
|
|
[numthreads(4, 1, 1)]
|
|
void main()
|
|
{
|
|
comp_main();
|
|
}
|