diff options
author | Karl Berry <karl@freefriends.org> | 2022-02-27 23:41:11 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2022-02-27 23:41:11 +0000 |
commit | 8027f287eb46d487a0e379911bdbc4d6c2bf44e4 (patch) | |
tree | b6e3aeebab3f5c2560ae1ab892b76cca269eb05e /Master/texmf-dist/asymptote/shaders/offset.glsl | |
parent | a4855ce49e2101557c17547c2d22594e1b2a215c (diff) |
asymptote 2.78 support files
git-svn-id: svn://tug.org/texlive/trunk@62265 c570f23f-e606-0410-a88d-b1316a301751
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; +} |