From b3924e3d3ec304d76ea8ad21efa7c73163282018 Mon Sep 17 00:00:00 2001 From: skal Date: Mon, 16 Feb 2026 16:27:24 +0100 Subject: 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 --- src/effects/particles_effect.cc | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/effects/particles_effect.cc') 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}}; -- cgit v1.2.3