diff options
| author | skal <pascal.massimino@gmail.com> | 2026-02-13 21:03:46 +0100 |
|---|---|---|
| committer | skal <pascal.massimino@gmail.com> | 2026-02-13 21:03:46 +0100 |
| commit | 9bcdc6fdaa7e1b4a20ec0c86d521af69f4c13c62 (patch) | |
| tree | 7ebaebe08d95a049ed9ea29b55663bacb44c4807 /src/tests/common/offscreen_render_target.h | |
| parent | 60fe2ae74267eba1c33b8e00f0f4d6906cc6eea3 (diff) | |
CNN v2 web tool: Multiple fixes for feature parity with cnn_test
Changes:
- Static shader: Point sampler (nearest filter) instead of linear
- Mip handling: Use textureSampleLevel with point sampler (fixes coordinate scaling)
- Save PNG: GPU readback via staging buffer (WebGPU canvas lacks toBlob support)
- Depth binding: Use input texture as depth (matches C++ simplification)
- Header offset: Version-aware calculation (v1=4, v2=5 u32)
Known issue: Output still differs from cnn_test (color tones). Root cause TBD.
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Diffstat (limited to 'src/tests/common/offscreen_render_target.h')
0 files changed, 0 insertions, 0 deletions
