From c67629a64cf060d94bbaf709fb35fad6f8964e0c Mon Sep 17 00:00:00 2001 From: Chris Duncan Date: Fri, 28 Feb 2025 22:29:49 -0800 Subject: [PATCH] Fix duplicate constant declaration from branch merge. Add notes to benchmarks sheet about browser canvases. --- benchmarks.md | 4 ++++ src/shaders/compute.wgsl | 7 ------- 2 files changed, 4 insertions(+), 7 deletions(-) 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. */ -- 2.34.1