]> zoso.dev Git - libnemo.git/commitdiff
Change work vector to 3 dimensions to store "found" flag.
authorChris Duncan <chris@zoso.dev>
Thu, 2 Jan 2025 13:49:38 +0000 (05:49 -0800)
committerChris Duncan <chris@zoso.dev>
Thu, 2 Jan 2025 13:49:38 +0000 (05:49 -0800)
src/lib/workers/powgpu.ts

index d3340328a8ec9de474bfe8ee9f7a1fac57a3bdd7..58d3185eef800ec9d84b48c9176e99a1164ffecf 100644 (file)
@@ -49,7 +49,7 @@ export class PowGpu extends WorkerInterface {
                        threshold: u32
                };
                @group(0) @binding(0) var<uniform> ubo: UBO;
-               @group(0) @binding(1) var<storage, read_write> work: vec2<u32>;
+               @group(0) @binding(1) var<storage, read_write> work: vec3<u32>;
 
                /**
                * Defined separately from uint v[32] below as the original value is required