summaryrefslogtreecommitdiff
path: root/cnn_v3/docs/HOWTO.md
diff options
context:
space:
mode:
authorskal <pascal.massimino@gmail.com>2026-03-22 16:23:25 +0100
committerskal <pascal.massimino@gmail.com>2026-03-22 16:23:25 +0100
commitb3c69d188943269769b7fee305f135faadcc60f2 (patch)
tree34260ef2434652557e27443d665d2b180a2677cb /cnn_v3/docs/HOWTO.md
parent159ca2ca19345515cdfebed9fd88646730492cd2 (diff)
fix(cnn_v3/tools): remove unused sampler binding from FULL_PACK_SHADER
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.
Diffstat (limited to 'cnn_v3/docs/HOWTO.md')
-rw-r--r--cnn_v3/docs/HOWTO.md7
1 files changed, 4 insertions, 3 deletions
diff --git a/cnn_v3/docs/HOWTO.md b/cnn_v3/docs/HOWTO.md
index c6f306b..08979e7 100644
--- a/cnn_v3/docs/HOWTO.md
+++ b/cnn_v3/docs/HOWTO.md
@@ -444,9 +444,10 @@ WebGPU compute shader (`@workgroup_size(8,8)`) with 9 bindings:
| Binding | Resource | Format |
|---------|----------|--------|
| 0–5 | albedo, normal, depth, matid, shadow, transp | `texture_2d<f32>` (rgba8unorm, R channel for single-channel maps) |
-| 6 | linear sampler | `sampler` |
-| 7 | feat_tex0 output | `texture_storage_2d<rgba32uint,write>` |
-| 8 | feat_tex1 output | `texture_storage_2d<rgba32uint,write>` |
+| 6 | feat_tex0 output | `texture_storage_2d<rgba32uint,write>` |
+| 7 | feat_tex1 output | `texture_storage_2d<rgba32uint,write>` |
+
+No sampler — all reads use `textureLoad()` (integer texel coordinates).
Packs channels identically to `gbuf_pack.wgsl`:
- `feat_tex0`: `pack2x16float(alb.rg)`, `pack2x16float(alb.b, nrm.x)`, `pack2x16float(nrm.y, depth)`, `pack2x16float(dzdx, dzdy)`