1 2 3 4 5 6 7 8 9 10 11
layout(binding=2, std430) buffer countBuffer { uint count[]; }; uniform uint width; void main() { count[uint(gl_FragCoord.y)*width+uint(gl_FragCoord.x)]=0u; discard; }