]> zoso.dev Git - nano-pow.git/commitdiff
Update devdeps. Formatting for linebreak.
authorChris Duncan <chris@zoso.dev>
Fri, 10 Jan 2025 18:18:29 +0000 (10:18 -0800)
committerChris Duncan <chris@zoso.dev>
Fri, 10 Jan 2025 18:28:08 +0000 (10:28 -0800)
package.json
src/shaders/gpu-compute.ts

index 6ee9244e72db2f7fbfb89ce1622a2291b21c0798..8b6fb755fd4484d11151708e22d393517a0ef8b5 100644 (file)
                "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",
index 4da88999c3aeb668cc38d153a6872850ade23302..340c50f36ddc8f6661b50eaf5f47271404050845 100644 (file)
@@ -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<u32>
-) {
+fn main(@builtin(global_invocation_id) id: vec3<u32>) {
        if (atomicLoad(&work.found) != 0u) { return; }
 
        let threshold: u32 = ubo.threshold;