| 1 |
#version 310 es |
| 2 |
layout(local_size_x = 4, local_size_y = 1, local_size_z = 1) in; |
| 3 |
|
| 4 |
layout(binding = 0, std430) readonly buffer SSBO |
| 5 |
{ |
| 6 |
float in_data[]; |
| 7 |
} _22; |
| 8 |
|
| 9 |
layout(binding = 1, std430) writeonly buffer SSBO2 |
| 10 |
{ |
| 11 |
float out_data[]; |
| 12 |
} _44; |
| 13 |
|
| 14 |
shared float sShared[4]; |
| 15 |
|
| 16 |
void main() |
| 17 |
{ |
| 18 |
uint ident = gl_GlobalInvocationID.x; |
| 19 |
float idata = _22.in_data[ident]; |
| 20 |
sShared[gl_LocalInvocationIndex] = idata; |
| 21 |
barrier(); |
| 22 |
_44.out_data[ident] = sShared[(4u - gl_LocalInvocationIndex) - 1u]; |
| 23 |
} |
| 24 |
|