diff options
Diffstat (limited to 'graphics/asymptote/base/shaders/count0.glsl')
-rw-r--r-- | graphics/asymptote/base/shaders/count0.glsl | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/graphics/asymptote/base/shaders/count0.glsl b/graphics/asymptote/base/shaders/count0.glsl new file mode 100644 index 0000000000..9bcb6d222e --- /dev/null +++ b/graphics/asymptote/base/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; +} |