From 1522b95c838fc3e567066fd96dede3dca25cbc95 Mon Sep 17 00:00:00 2001 From: skal Date: Sun, 1 Feb 2026 16:18:19 +0100 Subject: feat(gpu): Integrate bumpy 3D renderer into main demo - Added depth buffer support to MainSequence. - Implemented Hybrid3DEffect for the main timeline. - Fixed effect initialization order in MainSequence. - Ensured depth-stencil compatibility for all scene effects. - Updated demo sequence with 3D elements and post-processing. --- src/gpu/effect.h | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'src/gpu/effect.h') diff --git a/src/gpu/effect.h b/src/gpu/effect.h index 51b3883..5d6b666 100644 --- a/src/gpu/effect.h +++ b/src/gpu/effect.h @@ -122,12 +122,11 @@ class MainSequence { WGPUTextureView framebuffer_view_a_ = nullptr; WGPUTexture framebuffer_b_ = nullptr; WGPUTextureView framebuffer_view_b_ = nullptr; + + WGPUTexture depth_texture_ = nullptr; + WGPUTextureView depth_view_ = nullptr; - public: // Made public for testing - void init_test(WGPUDevice device, WGPUQueue queue, WGPUTextureFormat format); - - private: // Restore private access for other members - std::unique_ptr passthrough_effect_; + std::unique_ptr passthrough_effect_; void create_framebuffers(int width, int height); }; -- cgit v1.2.3