diff options
| author | skal <pascal.massimino@gmail.com> | 2026-02-16 16:27:24 +0100 |
|---|---|---|
| committer | skal <pascal.massimino@gmail.com> | 2026-02-16 16:27:24 +0100 |
| commit | b3924e3d3ec304d76ea8ad21efa7c73163282018 (patch) | |
| tree | fa097b0d3010b9b1db81202766cab3b5197f9195 /src/gpu | |
| parent | faea2bebb6d04806018f0f60634d9989832b9a38 (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/gpu')
| -rw-r--r-- | src/gpu/gpu.h | 5 |
1 files changed, 0 insertions, 5 deletions
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 |
