From 4148d34a850f9171bdcc514def69f96cf1864100 Mon Sep 17 00:00:00 2001 From: Chris Duncan Date: Thu, 2 Jan 2025 05:52:46 -0800 Subject: [PATCH] Clean up commenting. --- src/lib/workers/powgpu.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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; -- 2.34.1