1#version 460 2#extension GL_EXT_mesh_shader : enable 3 4layout(local_size_x = 1) in; 5 6struct structType{ 7 int y[3]; 8}; 9 10layout(std430) buffer t2 { 11 structType f; 12} t; 13 14buffer coherent Buffer { int x; }; 15 16// use of storage qualifier "taskPayloadSharedEXT" in mesh shaders: 17struct taskBlock { 18 int atom1; 19}; 20taskPayloadSharedEXT taskBlock mytask; 21 22 23void main() { 24 atomicAdd(x, 1); 25 atomicAdd(t.f.y[1], 1); 26 atomicAdd(mytask.atom1, 1); 27}