stop being dumb dumb

This commit is contained in:
2025-12-27 22:01:42 +01:00
parent c957b833d3
commit 1884daea1f
4 changed files with 12 additions and 7 deletions

View File

@@ -18,9 +18,10 @@ layout(binding = 0) buffer inoutBufer { uint v[]; };
void main() {
uint gIDx = gl_GlobalInvocationID.x;
if (gIDx >= p.size) {
if (gIDx + p.offset >= p.size) {
return;
}
v[gIDx] = v[gIDx] + v[gIDx + p.offset];
v[gIDx] += v[gIDx + p.offset];
}