summaryrefslogtreecommitdiff
path: root/src/effects/particles_effect.cc
diff options
context:
space:
mode:
authorskal <pascal.massimino@gmail.com>2026-02-16 16:27:24 +0100
committerskal <pascal.massimino@gmail.com>2026-02-16 16:27:24 +0100
commitb3924e3d3ec304d76ea8ad21efa7c73163282018 (patch)
treefa097b0d3010b9b1db81202766cab3b5197f9195 /src/effects/particles_effect.cc
parentfaea2bebb6d04806018f0f60634d9989832b9a38 (diff)
refactor(gpu): remove depthSlice conditionals, use platform.h abstraction
WGPU_DEPTH_SLICE_UNDEFINED is defined unconditionally via platform.h (native headers or Win32 macro). Remove redundant conditional compilation from 7 effects and gpu.h helper. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Diffstat (limited to 'src/effects/particles_effect.cc')
-rw-r--r--src/effects/particles_effect.cc2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/effects/particles_effect.cc b/src/effects/particles_effect.cc
index a98d7e5..b9e2b9c 100644
--- a/src/effects/particles_effect.cc
+++ b/src/effects/particles_effect.cc
@@ -81,9 +81,7 @@ void ParticlesEffect::render(WGPUCommandEncoder encoder,
WGPURenderPassColorAttachment color_attachment = {
.view = output_view,
-#if !defined(DEMO_CROSS_COMPILE_WIN32)
.depthSlice = WGPU_DEPTH_SLICE_UNDEFINED,
-#endif
.loadOp = WGPULoadOp_Clear,
.storeOp = WGPUStoreOp_Store,
.clearValue = {0.0, 0.0, 0.0, 1.0}};