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/effects/flash_effect.cc | |
| 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/effects/flash_effect.cc')
| -rw-r--r-- | src/effects/flash_effect.cc | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/effects/flash_effect.cc b/src/effects/flash_effect.cc index f0566bb..1d0e629 100644 --- a/src/effects/flash_effect.cc +++ b/src/effects/flash_effect.cc @@ -63,9 +63,7 @@ void FlashEffect::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}; |
