summaryrefslogtreecommitdiff
path: root/workspaces/main/shaders/compute/gen_noise.wgsl
diff options
context:
space:
mode:
authorskal <pascal.massimino@gmail.com>2026-02-11 00:26:25 +0100
committerskal <pascal.massimino@gmail.com>2026-02-11 00:26:25 +0100
commitc49d828f101b435d73a76fcfc8444cf76aeda22f (patch)
tree06978626cbb614f52434c4fdd40ccb197d7064c8 /workspaces/main/shaders/compute/gen_noise.wgsl
parent65fa059a1e5f81901735031ae329b1313ea6679d (diff)
opt: Move invariant in1 calculation outside CNN convolution loops
The in1 vector (uv_norm, gray, 1.0) is loop-invariant and doesn't depend on dx/dy offset. Moving it outside the convolution loop eliminates redundant computation and enables better SIMD optimization. Updated both shader files and train.py code generation. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Diffstat (limited to 'workspaces/main/shaders/compute/gen_noise.wgsl')
0 files changed, 0 insertions, 0 deletions