mirror of
https://github.com/libretro/RetroArch
synced 2025-01-29 00:32:49 +00:00
5af5222249
- https://github.com/KhronosGroup/SPIRV-Cross/commit/ 66a407285e36a0f772e3209cb86ded6e3d900f6a
28 lines
509 B
Plaintext
28 lines
509 B
Plaintext
#version 310 es
|
|
layout(local_size_x = 4) in;
|
|
|
|
shared float sShared[gl_WorkGroupSize.x];
|
|
|
|
layout(std430, binding = 0) readonly buffer SSBO
|
|
{
|
|
float in_data[];
|
|
};
|
|
|
|
layout(std430, binding = 1) writeonly buffer SSBO2
|
|
{
|
|
float out_data[];
|
|
};
|
|
|
|
void main()
|
|
{
|
|
uint ident = gl_GlobalInvocationID.x;
|
|
float idata = in_data[ident];
|
|
|
|
sShared[gl_LocalInvocationIndex] = idata;
|
|
memoryBarrierShared();
|
|
barrier();
|
|
|
|
out_data[ident] = sShared[gl_WorkGroupSize.x - gl_LocalInvocationIndex - 1u];
|
|
}
|
|
|