summaryrefslogtreecommitdiff
path: root/src/gpu/gpu.cc
diff options
context:
space:
mode:
authorskal <pascal.massimino@gmail.com>2026-03-26 07:22:19 +0100
committerskal <pascal.massimino@gmail.com>2026-03-26 07:22:19 +0100
commitaf70b169c3d65c053ed80dd85e85304dfa78dc35 (patch)
treec5a7883efbff5ac94b782a39ccaad6c843936049 /src/gpu/gpu.cc
parent130d70ea130242533a0fd3a7ffeabdb68598c88e (diff)
chore(src/gpu): remove stale cnn_v1/v2 artifacts and dead comments
- demo_effects.h: drop commented-out cnn_v1/v2 includes (will be removed) - gpu.cc: replace stale "V2:" migration comments with accurate descriptions - effect.h, sequence.h: drop redundant #ifndef guards (kept #pragma once) handoff(Gemini): stale comment cleanup in src/gpu/ — no logic changes
Diffstat (limited to 'src/gpu/gpu.cc')
-rw-r--r--src/gpu/gpu.cc9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/gpu/gpu.cc b/src/gpu/gpu.cc
index a463a10..0be5afe 100644
--- a/src/gpu/gpu.cc
+++ b/src/gpu/gpu.cc
@@ -252,7 +252,7 @@ RenderPass gpu_create_render_pass(WGPUDevice device, WGPUTextureFormat format,
pipeline_desc.multisample.mask = 0xFFFFFFFF;
pipeline_desc.fragment = &fragment_state;
- // No depth stencil for v2 effects (v1 removed)
+ // No depth stencil for post-process effects
pipeline_desc.depthStencil = nullptr;
pass.pipeline = wgpuDeviceCreateRenderPipeline(device, &pipeline_desc);
@@ -437,12 +437,11 @@ void gpu_init(PlatformState* platform_state) {
InitShaderComposer();
- // V2: Sequences initialized by InitializeV2Sequences() called from main
}
void gpu_draw(float audio_peak, float aspect_ratio, float time, float beat_time,
float beat_phase) {
- // V2: Rendering handled by RenderV2Timeline() called from main
+ // Rendering is driven externally via the sequence pipeline
(void)audio_peak;
(void)aspect_ratio;
(void)time;
@@ -456,7 +455,7 @@ void gpu_resize(int width, int height) {
g_config.width = width;
g_config.height = height;
wgpuSurfaceConfigure(g_surface, &g_config);
- // V2: Resize handled by RenderV2Timeline() framebuffer recreation
+ // Framebuffer recreation is handled externally by the sequence pipeline
}
const GpuContext* gpu_get_context() {
@@ -468,5 +467,5 @@ WGPUSurface gpu_get_surface() {
}
void gpu_shutdown() {
- // V2: Shutdown handled by sequence cleanup
+ // Cleanup is handled by sequence and platform shutdown
}