1#version 310 es 2 3precision highp float; 4 5layout (local_size_x = 16, local_size_y = 32, local_size_z = 4) in; 6 7shared float s; 8shared int i; 9 10buffer outb { 11 float f; 12 float g; 13 float h; 14 vec3 uns[]; 15} outbname; 16 17buffer outbna { 18 int k; 19 vec4 na; 20} outbnamena; 21 22buffer outs { 23 int s; 24 vec4 va[]; 25} outnames; 26 27#extension GL_EXT_device_group : enable 28 29void main() 30{ 31 barrier(); 32 outbname.f = s; 33 outbnamena.na = vec4(s); 34 s = outbname.uns[18].x; 35 outbname.uns[17] = vec3(3.0); 36 outbname.uns[i] = vec3(s); 37 outnames.va[gl_LocalInvocationID.x] = vec4(s); 38 outnames.s = outbname.uns.length(); 39 gl_DeviceIndex; 40 memoryBarrierShared(); 41 groupMemoryBarrier(); 42} 43