From: Chris Duncan Date: Thu, 2 Jan 2025 13:52:46 +0000 (-0800) Subject: Clean up commenting. X-Git-Url: https://zoso.dev/?a=commitdiff_plain;h=4148d34a850f9171bdcc514def69f96cf1864100;p=libnemo.git Clean up commenting. --- diff --git a/src/lib/workers/powgpu.ts b/src/lib/workers/powgpu.ts index 18e883c..b27f31c 100644 --- a/src/lib/workers/powgpu.ts +++ b/src/lib/workers/powgpu.ts @@ -135,17 +135,18 @@ export class PowGpu extends WorkerInterface { /** * Main compute function + * + * 8-byte work is split into two 4-byte u32 + * First 4 bytes will be iterated by shader + * Last 4 bytes are defined by index of each thread */ @compute @workgroup_size(256) fn main(@builtin(global_invocation_id) global_id: vec3) { var m: array; - // 8-byte work is split into two 4-byte u32 - // First 6 bytes provided, last 2 bytes defined by this compute index m[0u] = ubo.rand.x; m[1u] = (ubo.rand.y << 16u) ^ global_id.x; - // Block hash m[2u] = ubo.blockhash[0u].x; m[3u] = ubo.blockhash[0u].y; m[4u] = ubo.blockhash[0u].z;