summaryrefslogtreecommitdiff
path: root/workspaces/main/shaders/sdf_primitives.wgsl
diff options
context:
space:
mode:
authorskal <pascal.massimino@gmail.com>2026-02-10 17:37:01 +0100
committerskal <pascal.massimino@gmail.com>2026-02-10 17:37:01 +0100
commitf3c7ef8cd612f5ac908f39310c4c11566879313f (patch)
tree1e66127a855f30282c852731c0dd88ae6c7039bc /workspaces/main/shaders/sdf_primitives.wgsl
parent0aa35e895d70f4535b7fac0f5df318888a6847dc (diff)
fix: Support variable kernel sizes in CNN layer generation
Training script was hardcoded to generate cnn_conv3x3_* calls regardless of actual kernel size, causing shader validation errors when layer 1 used 5×5 kernel (100 weights) but called 3×3 function (expected 36). Changes: - train_cnn.py: Generate correct conv function based on kernel_sizes[i] - cnn_conv5x5.wgsl: Add cnn_conv5x5_7to4 and cnn_conv5x5_7to1 variants - Regenerate cnn_layer.wgsl with correct function calls for [3,5,3] - Document kernel size→function mapping in HOWTO.md Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Diffstat (limited to 'workspaces/main/shaders/sdf_primitives.wgsl')
0 files changed, 0 insertions, 0 deletions