From 8ce27b7e15f0fc65c8ee78950c7501660b936178 Mon Sep 17 00:00:00 2001 From: skal Date: Sat, 14 Feb 2026 15:14:25 +0100 Subject: style: Apply clang-format to codebase --- src/gpu/effect.cc | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) (limited to 'src/gpu/effect.cc') diff --git a/src/gpu/effect.cc b/src/gpu/effect.cc index 52128c4..ca98ebd 100644 --- a/src/gpu/effect.cc +++ b/src/gpu/effect.cc @@ -66,8 +66,8 @@ void Sequence::update_active_list(float seq_time) { #if !defined(STRIP_ALL) Effect* effect_ptr = item.effect.get(); const char* effect_name = typeid(*effect_ptr).name(); - printf(" [EFFECT START] <%s> (priority=%d, time=%.2f-%.2f)\n", effect_name, - item.priority, item.start_time, item.end_time); + printf(" [EFFECT START] <%s> (priority=%d, time=%.2f-%.2f)\n", + effect_name, item.priority, item.start_time, item.end_time); #endif item.effect->start(); item.active = true; @@ -173,8 +173,8 @@ void MainSequence::init(const GpuContext& ctx, int width, int height) { passthrough_effect_->resize(width, height); for (ActiveSequence& entry : sequences_) { - entry.seq->resize(width, height); // Set dimensions FIRST - entry.seq->init(this); // Then init with correct dimensions + entry.seq->resize(width, height); // Set dimensions FIRST + entry.seq->init(this); // Then init with correct dimensions } } @@ -183,8 +183,8 @@ void MainSequence::add_sequence(std::shared_ptr seq, float start_time, sequences_.push_back({seq, start_time, priority}); // If MainSequence is already initialized, init the new sequence immediately if (gpu_ctx.device) { - seq->resize(width_, height_); // Set dimensions FIRST - seq->init(this); // Then init with correct dimensions + seq->resize(width_, height_); // Set dimensions FIRST + seq->init(this); // Then init with correct dimensions } std::sort(sequences_.begin(), sequences_.end(), [](const ActiveSequence& a, const ActiveSequence& b) { @@ -329,8 +329,8 @@ void MainSequence::render_frame(float global_time, float beat_time, .colorAttachmentCount = 1, .colorAttachments = &capture_attachment}; WGPURenderPassEncoder capture_pass = wgpuCommandEncoderBeginRenderPass(encoder, &capture_desc); - wgpuRenderPassEncoderSetViewport(capture_pass, 0.0f, 0.0f, - (float)width_, (float)height_, 0.0f, 1.0f); + wgpuRenderPassEncoderSetViewport(capture_pass, 0.0f, 0.0f, (float)width_, + (float)height_, 0.0f, 1.0f); PostProcessEffect* passthrough = (PostProcessEffect*)passthrough_effect_.get(); @@ -555,7 +555,8 @@ void MainSequence::simulate_until(float target_time, float step_rate, } for (const SequenceItem* item : scene_effects) { CommonPostProcessUniforms test_uniforms = { - .resolution = {static_cast(width_), static_cast(height_)}, + .resolution = {static_cast(width_), + static_cast(height_)}, .aspect_ratio = aspect_ratio, .time = t - item->start_time, .beat_time = absolute_beat_time, -- cgit v1.2.3