diff options
| author | skal <pascal.massimino@gmail.com> | 2026-02-14 15:14:25 +0100 |
|---|---|---|
| committer | skal <pascal.massimino@gmail.com> | 2026-02-14 15:14:25 +0100 |
| commit | 8ce27b7e15f0fc65c8ee78950c7501660b936178 (patch) | |
| tree | 391f32111b9a30a0156709b6c1ed2fae7b435d57 /src/gpu/effect.h | |
| parent | e38be0dbf5816338ff97e2ee2f9adfff2902dc2b (diff) | |
style: Apply clang-format to codebase
Diffstat (limited to 'src/gpu/effect.h')
| -rw-r--r-- | src/gpu/effect.h | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/src/gpu/effect.h b/src/gpu/effect.h index 5d835ad..30e43d1 100644 --- a/src/gpu/effect.h +++ b/src/gpu/effect.h @@ -47,16 +47,17 @@ class Effect { return false; } - // Helper: get initialized CommonPostProcessUniforms based on current dimensions - // If aspect_ratio < 0, computes from width_/height_ - CommonPostProcessUniforms get_common_uniforms(float time = 0.0f, - float beat_time = 0.0f, - float beat_phase = 0.0f, - float intensity = 0.0f, - float aspect_ratio = -1.0f) const { + // Helper: get initialized CommonPostProcessUniforms based on current + // dimensions If aspect_ratio < 0, computes from width_/height_ + CommonPostProcessUniforms + get_common_uniforms(float time = 0.0f, float beat_time = 0.0f, + float beat_phase = 0.0f, float intensity = 0.0f, + float aspect_ratio = -1.0f) const { return { .resolution = {static_cast<float>(width_), static_cast<float>(height_)}, - .aspect_ratio = aspect_ratio < 0.0f ? static_cast<float>(width_) / static_cast<float>(height_) : aspect_ratio, + .aspect_ratio = aspect_ratio < 0.0f ? static_cast<float>(width_) / + static_cast<float>(height_) + : aspect_ratio, .time = time, .beat_time = beat_time, .beat_phase = beat_phase, |
