From b3c69d188943269769b7fee305f135faadcc60f2 Mon Sep 17 00:00:00 2001 From: skal Date: Sun, 22 Mar 2026 16:23:25 +0100 Subject: fix(cnn_v3/tools): remove unused sampler binding from FULL_PACK_SHADER MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit WebGPU auto-reflects the BGL from the shader; a declared-but-unused sampler binding is omitted from the layout, causing CreateBindGroup to reject it. Removed binding 6 (sampler) entirely — all reads use textureLoad(). Renumbered f0/f1 from 7/8 to 6/7 to match. --- cnn_v3/tools/tester.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'cnn_v3/tools/tester.js') diff --git a/cnn_v3/tools/tester.js b/cnn_v3/tools/tester.js index c1faec9..d58b87e 100644 --- a/cnn_v3/tools/tester.js +++ b/cnn_v3/tools/tester.js @@ -631,9 +631,8 @@ class CNNv3Tester { {binding:3, resource: midTex.createView()}, {binding:4, resource: shdTex.createView()}, {binding:5, resource: trpTex.createView()}, - {binding:6, resource: this.linearSampler}, - {binding:7, resource: f0.createView()}, - {binding:8, resource: f1.createView()}, + {binding:6, resource: f0.createView()}, + {binding:7, resource: f1.createView()}, ]}); const enc = this.device.createCommandEncoder(); -- cgit v1.2.3