summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/asymptote/shaders/count0.glsl
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/asymptote/shaders/count0.glsl')
-rwxr-xr-xMaster/texmf-dist/asymptote/shaders/count0.glsl11
1 files changed, 11 insertions, 0 deletions
diff --git a/Master/texmf-dist/asymptote/shaders/count0.glsl b/Master/texmf-dist/asymptote/shaders/count0.glsl
new file mode 100755
index 00000000000..9bcb6d222e5
--- /dev/null
+++ b/Master/texmf-dist/asymptote/shaders/count0.glsl
@@ -0,0 +1,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;
+}