diff options
Diffstat (limited to 'graphics/asymptote/base/shaders/compress.glsl')
-rw-r--r-- | graphics/asymptote/base/shaders/compress.glsl | 19 |
1 files changed, 6 insertions, 13 deletions
diff --git a/graphics/asymptote/base/shaders/compress.glsl b/graphics/asymptote/base/shaders/compress.glsl index 2f64d24c88..26b4e1041e 100644 --- a/graphics/asymptote/base/shaders/compress.glsl +++ b/graphics/asymptote/base/shaders/compress.glsl @@ -1,16 +1,3 @@ -#ifdef GPUINDEXING -layout(binding=0, std430) buffer offsetBuffer -{ - uint offset[]; -}; -#define count offset -#else -layout(binding=2, std430) buffer countBuffer -{ - uint count[]; -}; -#endif - layout(binding=0) uniform atomic_uint elements; layout(binding=1, std430) buffer indexBuffer @@ -18,6 +5,12 @@ layout(binding=1, std430) buffer indexBuffer uint index[]; }; +layout(binding=2, std430) buffer countBuffer +{ + uint maxSize; + uint count[]; +}; + uniform uint width; void main() |