diff options
Diffstat (limited to 'Master/texmf-dist/asymptote/shaders/offset.glsl')
-rwxr-xr-x | Master/texmf-dist/asymptote/shaders/offset.glsl | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/Master/texmf-dist/asymptote/shaders/offset.glsl b/Master/texmf-dist/asymptote/shaders/offset.glsl new file mode 100755 index 00000000000..5fe24e75587 --- /dev/null +++ b/Master/texmf-dist/asymptote/shaders/offset.glsl @@ -0,0 +1,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; +} |