diff options
| author | skal <pascal.massimino@gmail.com> | 2026-02-14 12:50:27 +0100 |
|---|---|---|
| committer | skal <pascal.massimino@gmail.com> | 2026-02-14 12:50:27 +0100 |
| commit | 5e33097e4649f1c886275db18dc532930487457b (patch) | |
| tree | e4cee838e54a2aaf8fa66741f467f8fceefc808a /doc/CNN.py | |
| parent | 48beb6b1c10d7ca42205000a5bb420a1e3282d92 (diff) | |
Refactor: factorize WGPU init code for 3D tests
Extracted duplicate WGPU initialization boilerplate from test_3d_physics,
test_3d_render, and test_mesh into shared helper (test_3d_helpers).
**Changes:**
- New: src/tests/common/test_3d_helpers.{h,cc} (~120 LOC)
- Removed ~280 LOC of duplicate init_wgpu() implementations
- Net savings: -141 LOC
**Benefits:**
- Single source of truth for surface+device initialization
- Eliminates cross-compile #ifdef duplication
- Easier maintenance for callback API changes
All 34 tests pass.
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Diffstat (limited to 'doc/CNN.py')
0 files changed, 0 insertions, 0 deletions
