From 50350344d289c3389161cd6914c57f88d1a04dcc Mon Sep 17 00:00:00 2001 From: skal Date: Tue, 17 Feb 2026 08:12:05 +0100 Subject: refactor: move shaders.{h,cc} to src/effects and remove v2 suffix - Removed unused v1 shader declarations (13 variables) - Removed _v2 suffix from active shader names - Moved shaders.{h,cc} from src/gpu to src/effects - Updated all includes and build references - All tests pass (34/34) handoff(Claude): Cleaned up shader management, tests passing --- src/effects/particles_effect.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/effects/particles_effect.cc') diff --git a/src/effects/particles_effect.cc b/src/effects/particles_effect.cc index f93133f..7a8d94d 100644 --- a/src/effects/particles_effect.cc +++ b/src/effects/particles_effect.cc @@ -4,7 +4,7 @@ #include "util/fatal_error.h" #include "effects/particles_effect.h" #include "gpu/gpu.h" -#include "gpu/shaders.h" +#include "effects/shaders.h" #include Particles::Particles(const GpuContext& ctx, @@ -49,7 +49,7 @@ Particles::Particles(const GpuContext& ctx, ResourceBinding compute_bindings[] = { {particles_buffer_, WGPUBufferBindingType_Storage}, {uniforms_.get(), WGPUBufferBindingType_Uniform}}; - compute_pass_ = gpu_create_compute_pass(ctx_.device, particle_compute_v2_wgsl, + compute_pass_ = gpu_create_compute_pass(ctx_.device, particle_compute_wgsl, compute_bindings, 2); compute_pass_.workgroup_size_x = (NUM_PARTICLES + 63) / 64; @@ -58,7 +58,7 @@ Particles::Particles(const GpuContext& ctx, {particles_buffer_, WGPUBufferBindingType_ReadOnlyStorage}, {uniforms_.get(), WGPUBufferBindingType_Uniform}}; render_pass_ = gpu_create_render_pass(ctx_.device, WGPUTextureFormat_RGBA8Unorm, - particle_render_v2_wgsl, render_bindings, 2); + particle_render_wgsl, render_bindings, 2); render_pass_.vertex_count = 6; render_pass_.instance_count = NUM_PARTICLES; } -- cgit v1.2.3