summaryrefslogtreecommitdiff
path: root/Build/source/utils/asymptote/base/shaders/postsum.glsl
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source/utils/asymptote/base/shaders/postsum.glsl')
-rw-r--r--Build/source/utils/asymptote/base/shaders/postsum.glsl30
1 files changed, 0 insertions, 30 deletions
diff --git a/Build/source/utils/asymptote/base/shaders/postsum.glsl b/Build/source/utils/asymptote/base/shaders/postsum.glsl
deleted file mode 100644
index 999fe5fdf37..00000000000
--- a/Build/source/utils/asymptote/base/shaders/postsum.glsl
+++ /dev/null
@@ -1,30 +0,0 @@
-layout(local_size_x=1) in;
-
-uniform uint elements;
-
-layout(binding=1, std430) buffer offsetBuffer
-{
- uint offset[];
-};
-
-void main(void)
-{
- uint id=gl_GlobalInvocationID.x;
-
- uint m=elements/gl_NumWorkGroups.x;
- uint r=elements-m*gl_NumWorkGroups.x;
- uint row,stop;
- if(id < r) {
- row=m*id+id;
- stop=row+m+1;
- } else {
- row=m*id+r;
- stop=row+m;
- }
-
- uint Sum=offset[row];
- for(uint i=row+1u; i < stop; ++i) {
- Sum += offset[i];
- offset[i]=Sum;
- }
-}