summaryrefslogtreecommitdiff
path: root/src/effects/particles_effect.cc
diff options
context:
space:
mode:
authorskal <pascal.massimino@gmail.com>2026-02-17 08:12:05 +0100
committerskal <pascal.massimino@gmail.com>2026-02-17 08:12:05 +0100
commit50350344d289c3389161cd6914c57f88d1a04dcc (patch)
tree5394a9b7781e3ccbbd332af8b043ea28d9d6a99f /src/effects/particles_effect.cc
parentfef8f1a9b7ff513963fbcae7590c24f95a06081c (diff)
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
Diffstat (limited to 'src/effects/particles_effect.cc')
-rw-r--r--src/effects/particles_effect.cc6
1 files changed, 3 insertions, 3 deletions
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 <vector>
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;
}