24 layout(binding= 0, std430) readonly buffer objectData
29 layout(binding= 1, std430) writeonly buffer remapData
34 layout(binding= 2, std430) writeonly buffer paramData
39 layout(binding= 3) buffer counterData
49 layout(local_size_x= 256) in;
52 uint
id= gl_GlobalInvocationID.x;
53 if(
id >= objects.length())
57 vec3 pmin= objects[id].pmin;
58 vec3 pmax= objects[id].pmax;
61 if(any(lessThan(pmax, bmin))
62 || any(greaterThan(pmin, bmax)))
72 uint index= atomicAdd(count, 1);
78 params[index].vertex_count= objects[id].vertex_count;
79 params[index].instance_count= 1;
80 params[index].vertex_base= objects[id].vertex_base;
81 params[index].instance_base= 0;
vecteur generique, utilitaire.