summaryrefslogtreecommitdiff
path: root/src/gpu/effect.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/gpu/effect.cc')
-rw-r--r--src/gpu/effect.cc19
1 files changed, 10 insertions, 9 deletions
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<Sequence> 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<float>(width_), static_cast<float>(height_)},
+ .resolution = {static_cast<float>(width_),
+ static_cast<float>(height_)},
.aspect_ratio = aspect_ratio,
.time = t - item->start_time,
.beat_time = absolute_beat_time,