From 25e693cc46324b4ec588530de542bba8af6f47c6 Mon Sep 17 00:00:00 2001 From: skal Date: Sat, 31 Jan 2026 21:11:11 +0100 Subject: style: add vertical compression rules to clang-format - Enabled AllowShortFunctionsOnASingleLine: All - Enabled AllowShortBlocksOnASingleLine: Always - Enabled AllowShortIfStatementsOnASingleLine: Always - Enabled AllowShortLoopsOnASingleLine: true - Set MaxEmptyLinesToKeep: 1 - Applied formatting to all source files. --- src/gpu/effect.h | 21 ++++++--------------- 1 file changed, 6 insertions(+), 15 deletions(-) (limited to 'src/gpu/effect.h') diff --git a/src/gpu/effect.h b/src/gpu/effect.h index 1d339e2..0b791a3 100644 --- a/src/gpu/effect.h +++ b/src/gpu/effect.h @@ -15,11 +15,8 @@ class PostProcessEffect; class Effect { public: virtual ~Effect() = default; - virtual void init(MainSequence *demo) { - (void)demo; - } - virtual void start() { - } + virtual void init(MainSequence *demo) { (void)demo; } + virtual void start() {} virtual void compute(WGPUCommandEncoder encoder, float time, float beat, float intensity, float aspect_ratio) { (void)encoder; @@ -30,21 +27,15 @@ public: } virtual void render(WGPURenderPassEncoder pass, float time, float beat, float intensity, float aspect_ratio) = 0; - virtual void end() { - } + virtual void end() {} bool is_initialized = false; - virtual bool is_post_process() const { - return false; - } + virtual bool is_post_process() const { return false; } }; class PostProcessEffect : public Effect { public: - bool is_post_process() const override { - return true; - } - void compute(WGPUCommandEncoder, float, float, float, float) override { - } + bool is_post_process() const override { return true; } + void compute(WGPUCommandEncoder, float, float, float, float) override {} void render(WGPURenderPassEncoder pass, float time, float beat, float intensity, float aspect_ratio) override; virtual void update_bind_group(WGPUTextureView input_view) = 0; -- cgit v1.2.3