summaryrefslogtreecommitdiff
path: root/src/gpu/gpu.cc
diff options
context:
space:
mode:
authorskal <pascal.massimino@gmail.com>2026-02-08 07:40:29 +0100
committerskal <pascal.massimino@gmail.com>2026-02-08 07:40:29 +0100
commitc9195f997f3e797f03ab90464e4158717198a167 (patch)
tree331304f42870246efdc64cc97ad42de59444ef3a /src/gpu/gpu.cc
parentb8e6929cafa41681f0b27ac104c9cf1d4e510837 (diff)
style: Apply clang-format to all source files
Diffstat (limited to 'src/gpu/gpu.cc')
-rw-r--r--src/gpu/gpu.cc9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/gpu/gpu.cc b/src/gpu/gpu.cc
index fe71d3e..9776eac 100644
--- a/src/gpu/gpu.cc
+++ b/src/gpu/gpu.cc
@@ -371,7 +371,8 @@ void gpu_init(PlatformState* platform_state) {
InitShaderComposer();
- g_main_sequence.init(g_gpu_context, platform_state->width, platform_state->height);
+ g_main_sequence.init(g_gpu_context, platform_state->width,
+ platform_state->height);
LoadTimeline(g_main_sequence, g_gpu_context);
}
@@ -394,9 +395,11 @@ void gpu_simulate_until(float time) {
g_main_sequence.simulate_until(time, 1.0f / 60.0f);
}
-void gpu_add_custom_effect(Effect* effect, float start_time, float end_time, int priority) {
+void gpu_add_custom_effect(Effect* effect, float start_time, float end_time,
+ int priority) {
auto seq = std::make_shared<Sequence>();
- seq->add_effect(std::shared_ptr<Effect>(effect), start_time, end_time, priority);
+ seq->add_effect(std::shared_ptr<Effect>(effect), start_time, end_time,
+ priority);
seq->init(&g_main_sequence);
g_main_sequence.add_sequence(seq, 0.0f, priority);
}