diff options
| author | skal <pascal.massimino@gmail.com> | 2026-02-12 00:40:53 +0100 |
|---|---|---|
| committer | skal <pascal.massimino@gmail.com> | 2026-02-12 00:40:53 +0100 |
| commit | 05fdd78a78b83a322abc1b507325644662f3a9c1 (patch) | |
| tree | 5568a45c7dade1076eeb9b42b97e1d8341050976 /src/util/file_watcher.cc | |
| parent | e16e9dd41b7487753889fb9c86b5c4cbe3eaf3fd (diff) | |
refactor: use CommonUniforms from common_uniforms.wgsl in test_demo
Instead of duplicating the uniform structure definition, PeakMeterEffect
now uses ShaderComposer to include the common_uniforms snippet, ensuring
the struct definition always matches the canonical version.
Changes:
- Added shader_composer.h include
- Use ShaderComposer::Get().Compose() to prepend common_uniforms
- Changed 'Uniforms' → 'CommonUniforms' in shader
- Removed duplicate struct definition
This ensures consistency across all shaders and eliminates potential
drift between duplicate definitions.
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Diffstat (limited to 'src/util/file_watcher.cc')
0 files changed, 0 insertions, 0 deletions
