2015-05-15 21:32:46 +00:00
|
|
|
#version 310 es
|
|
|
|
|
|
|
|
precision highp float;
|
|
|
|
|
|
|
|
layout (local_size_x = 16, local_size_y = 32, local_size_z = 4) in;
|
|
|
|
|
|
|
|
shared float s;
|
|
|
|
shared int i;
|
|
|
|
|
|
|
|
buffer outb {
|
|
|
|
float f;
|
|
|
|
float g;
|
|
|
|
float h;
|
2015-09-12 18:17:44 +00:00
|
|
|
vec3 uns[];
|
2015-05-15 21:32:46 +00:00
|
|
|
} outbname;
|
|
|
|
|
|
|
|
buffer outbna {
|
|
|
|
int k;
|
|
|
|
vec4 na;
|
|
|
|
} outbnamena;
|
|
|
|
|
|
|
|
buffer outs {
|
2015-09-12 18:17:44 +00:00
|
|
|
int s;
|
2015-05-15 21:32:46 +00:00
|
|
|
vec4 va[];
|
|
|
|
} outnames;
|
|
|
|
|
2017-03-14 22:45:30 +00:00
|
|
|
#extension GL_EXT_device_group : enable
|
|
|
|
|
2015-05-15 21:32:46 +00:00
|
|
|
void main()
|
|
|
|
{
|
|
|
|
barrier();
|
|
|
|
outbname.f = s;
|
|
|
|
outbnamena.na = vec4(s);
|
2015-09-12 18:17:44 +00:00
|
|
|
s = outbname.uns[18].x;
|
|
|
|
outbname.uns[17] = vec3(3.0);
|
2015-05-15 21:32:46 +00:00
|
|
|
outbname.uns[i] = vec3(s);
|
|
|
|
outnames.va[gl_LocalInvocationID.x] = vec4(s);
|
2015-09-12 18:17:44 +00:00
|
|
|
outnames.s = outbname.uns.length();
|
2017-03-14 22:45:30 +00:00
|
|
|
gl_DeviceIndex;
|
2017-12-11 11:02:24 +00:00
|
|
|
memoryBarrierShared();
|
|
|
|
groupMemoryBarrier();
|
2015-05-15 21:32:46 +00:00
|
|
|
}
|