summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/asymptote/shaders/offset.glsl
blob: 5fe24e75587369553122ff63d2a3964a8e087e3a (plain)
1
2
3
4
5
6
7
8
9
10
11
layout(binding=1, std430) buffer offsetBuffer {
  uint offset[];
};

uniform uint width;

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