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/heptagon_effect.cc | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/effects/heptagon_effect.cc') diff --git a/src/effects/heptagon_effect.cc b/src/effects/heptagon_effect.cc index 31e94e7..303ab2a 100644 --- a/src/effects/heptagon_effect.cc +++ b/src/effects/heptagon_effect.cc @@ -65,9 +65,7 @@ void HeptagonEffect::render(WGPUCommandEncoder encoder, // Render pass WGPURenderPassColorAttachment color_attachment = {}; color_attachment.view = output_view; -#if !defined(DEMO_CROSS_COMPILE_WIN32) color_attachment.depthSlice = WGPU_DEPTH_SLICE_UNDEFINED; -#endif color_attachment.loadOp = WGPULoadOp_Clear; color_attachment.storeOp = WGPUStoreOp_Store; color_attachment.clearValue = {0.0, 0.0, 0.0, 1.0}; -- cgit v1.2.3