summaryrefslogtreecommitdiff
path: root/graphics/asymptote/base/shaders/count.glsl
blob: dae4e51f1b758f8780a25868503524c0caaa9988 (plain)
1
2
3
4
5
6
7
8
9
10
11
layout(binding=2, std430) buffer countBuffer {
  uint count[];
};

uniform uint width;

void main()
{
  atomicAdd(count[uint(gl_FragCoord.y)*width+uint(gl_FragCoord.x)],1u);
  discard;
}