Add array-of-SSBO test.
This commit is contained in:
parent
0a5b3a6c78
commit
72e93672d3
14
reference/shaders/comp/ssbo-array.comp
Normal file
14
reference/shaders/comp/ssbo-array.comp
Normal file
@ -0,0 +1,14 @@
|
||||
#version 310 es
|
||||
layout(local_size_x = 1, local_size_y = 1, local_size_z = 1) in;
|
||||
|
||||
layout(binding = 0, std430) buffer SSBO
|
||||
{
|
||||
vec4 data[];
|
||||
} ssbos[2];
|
||||
|
||||
void main()
|
||||
{
|
||||
uint ident = gl_GlobalInvocationID.x;
|
||||
ssbos[1].data[ident] = ssbos[0].data[ident];
|
||||
}
|
||||
|
14
shaders/comp/ssbo-array.comp
Normal file
14
shaders/comp/ssbo-array.comp
Normal file
@ -0,0 +1,14 @@
|
||||
#version 310 es
|
||||
layout(local_size_x = 1) in;
|
||||
|
||||
layout(std430, binding = 0) buffer SSBO
|
||||
{
|
||||
vec4 data[];
|
||||
} ssbos[2];
|
||||
|
||||
void main()
|
||||
{
|
||||
uint ident = gl_GlobalInvocationID.x;
|
||||
ssbos[1].data[ident] = ssbos[0].data[ident];
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user