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/gpu/gpu.h | 5 ----- 1 file changed, 5 deletions(-) (limited to 'src/gpu') diff --git a/src/gpu/gpu.h b/src/gpu/gpu.h index 876aa84..41eeb29 100644 --- a/src/gpu/gpu.h +++ b/src/gpu/gpu.h @@ -66,12 +66,7 @@ inline void gpu_init_color_attachment(WGPURenderPassColorAttachment& attachment, attachment.loadOp = WGPULoadOp_Clear; attachment.storeOp = WGPUStoreOp_Store; attachment.clearValue = {0.0f, 0.0f, 0.0f, 1.0f}; -#if defined(DEMO_CROSS_COMPILE_WIN32) - // depthSlice is handled via macro in platform.h if needed, - // but usually it's better to just avoid setting it on older wgpu-native -#else attachment.depthSlice = WGPU_DEPTH_SLICE_UNDEFINED; -#endif } // Texture creation helper -- cgit v1.2.3