diff options
| author | skal <pascal.massimino@gmail.com> | 2026-02-14 12:38:59 +0100 |
|---|---|---|
| committer | skal <pascal.massimino@gmail.com> | 2026-02-14 12:38:59 +0100 |
| commit | c4cfc8459dbc6fde74d5553519dc3fcb1afccad0 (patch) | |
| tree | a6869d1f3c14778345ab45b9c69763d07adcca45 /third_party/glfw3webgpu/glfw3webgpu.c | |
| parent | 0f53ed1ed8ed7c07cd7ea8e88e21b5be5d5494e5 (diff) | |
Refactor: factorize common WGPU patterns into helper functions
Add texture creation helpers (gpu_create_texture_2d, gpu_create_storage_texture_2d,
gpu_create_mip_view) and extend BindGroupLayoutBuilder with uint_texture and
storage_texture methods.
Refactored files:
- cnn_v2_effect.cc: Use texture helpers (~70% code reduction in create_textures)
- rotating_cube_effect.cc: Use BindGroupLayoutBuilder and texture helpers
- circle_mask_effect.cc: Use BindGroupBuilder
Benefits:
- Improved code readability
- Reduced boilerplate for texture/bind group creation
- Consistent patterns across effects
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Diffstat (limited to 'third_party/glfw3webgpu/glfw3webgpu.c')
0 files changed, 0 insertions, 0 deletions
