From: Chris Duncan Date: Sat, 1 Mar 2025 06:29:49 +0000 (-0800) Subject: Fix duplicate constant declaration from branch merge. Add notes to benchmarks sheet... X-Git-Tag: v3.0.0~5 X-Git-Url: https://git.codecow.com/?a=commitdiff_plain;h=c67629a64cf060d94bbaf709fb35fad6f8964e0c;p=nano-pow.git Fix duplicate constant declaration from branch merge. Add notes to benchmarks sheet about browser canvases. --- diff --git a/benchmarks.md b/benchmarks.md index 660fb73..a22896b 100644 --- a/benchmarks.md +++ b/benchmarks.md @@ -10,6 +10,10 @@ _Each test is 128 samples of one pass (dispatch or frame) at zero threshold with - Safari WebGPU performance was maintained between versions - WebGL downsampling shader minimized readback lag and thus enabled much larger frames - WebGPU improved dramatically on non-mobile platforms, almost halving frame times +- Maximum WebGL canvas size varies + - Safari only supports up to 4096x4096 + - Chromium supports up to 5760x5760 + - Firefox supports up to a whopping 8192x8192 which actually makes it competitive with WebGPU ## All Results diff --git a/src/shaders/compute.wgsl b/src/shaders/compute.wgsl index 18bf76f..49cae71 100644 --- a/src/shaders/compute.wgsl +++ b/src/shaders/compute.wgsl @@ -27,13 +27,6 @@ struct WORK { */ const BLAKE2B_IV_0 = vec2(0xF2BDC900u, 0x6A09E667u); -/** -* Numeric literal used in the finalization digest is the original value of the -* first element of the initialization vector `blake2b_IV[0]` which in NanoPow -* is initialized at vector component `v01.y`. -*/ -const BLAKE2B_IV_0 = vec2(0xF2BDC900u, 0x6A09E667u); - /** * Used to fill partial `m` vec4 constructions. */