From: Chris Duncan Date: Fri, 10 Jan 2025 18:18:29 +0000 (-0800) Subject: Update devdeps. Formatting for linebreak. X-Git-Tag: v0.0.1~16 X-Git-Url: https://git.codecow.com/?a=commitdiff_plain;h=6af3ce5d881852d1151f71039cbf4b5d38758abe;p=nano-pow.git Update devdeps. Formatting for linebreak. --- diff --git a/package.json b/package.json index 6ee9244..8b6fb75 100644 --- a/package.json +++ b/package.json @@ -48,10 +48,11 @@ "test:performance": "npm run build && esbuild perf.min=test/perf.main.mjs --outdir=dist --target=esnext --format=esm --platform=browser --bundle --sourcemap" }, "devDependencies": { - "@types/node": "^22.10.1", + "@types/node": "^22.10.5", "@webgpu/types": "^0.1.52", - "esbuild": "^0.24.0", - "typescript": "^5.6.3" + "esbuild": "^0.24.2", + "esbuild-plugin-glsl": "^1.2.2", + "typescript": "^5.7.3" }, "type": "module", "exports": "./dist/main.js", diff --git a/src/shaders/gpu-compute.ts b/src/shaders/gpu-compute.ts index 4da8899..340c50f 100644 --- a/src/shaders/gpu-compute.ts +++ b/src/shaders/gpu-compute.ts @@ -24,8 +24,7 @@ const BLAKE2B_IV32_1: u32 = 0x6A09E667u; * UBO. High 4 bytes are the random value XOR'd with index of each thread. */ @compute @workgroup_size(256) -fn main(@builtin(global_invocation_id) id: vec3 -) { +fn main(@builtin(global_invocation_id) id: vec3) { if (atomicLoad(&work.found) != 0u) { return; } let threshold: u32 = ubo.threshold;