From af70b169c3d65c053ed80dd85e85304dfa78dc35 Mon Sep 17 00:00:00 2001 From: skal Date: Thu, 26 Mar 2026 07:22:19 +0100 Subject: chore(src/gpu): remove stale cnn_v1/v2 artifacts and dead comments MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 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 --- src/gpu/gpu.cc | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'src/gpu/gpu.cc') 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 } -- cgit v1.2.3