diff options
| author | skal <pascal.massimino@gmail.com> | 2026-02-11 00:26:25 +0100 |
|---|---|---|
| committer | skal <pascal.massimino@gmail.com> | 2026-02-11 00:26:25 +0100 |
| commit | c49d828f101b435d73a76fcfc8444cf76aeda22f (patch) | |
| tree | 06978626cbb614f52434c4fdd40ccb197d7064c8 /assets/final/shaders/math/common_utils.wgsl | |
| parent | 65fa059a1e5f81901735031ae329b1313ea6679d (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 'assets/final/shaders/math/common_utils.wgsl')
0 files changed, 0 insertions, 0 deletions
