diff options
| author | skal <pascal.massimino@gmail.com> | 2026-02-01 18:56:47 +0100 |
|---|---|---|
| committer | skal <pascal.massimino@gmail.com> | 2026-02-01 18:56:47 +0100 |
| commit | e3ef115804b46e8bfc594987b04b1059aed5e002 (patch) | |
| tree | 3670f718ee23cf34e94984568900eac23022d1f0 /src/gpu/effect.h | |
| parent | 7fab8880cca269621cd32610b22f2820567771f2 (diff) | |
feat(gpu/assets): Fix tests, integrate bumpy 3D renderer and procedural assets
- Fixed test_sequence by restoring MainSequence::init_test for mocking.
- Corrected CMakeLists.txt dependencies and source groupings to prevent duplicate symbols.
- standardizing Effect constructor signature for seq_compiler compatibility.
- Implemented Hybrid3DEffect using bumpy Renderer3D and procedural NOISE_TEX.
- Updated MainSequence to support depth buffer for 3D elements.
- Formatted all source files with clang-format.
Diffstat (limited to 'src/gpu/effect.h')
| -rw-r--r-- | src/gpu/effect.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gpu/effect.h b/src/gpu/effect.h index 5d6b666..29f8e85 100644 --- a/src/gpu/effect.h +++ b/src/gpu/effect.h @@ -100,6 +100,7 @@ class MainSequence { void init(WGPUDevice device, WGPUQueue queue, WGPUTextureFormat format, int width, int height); + void init_test(WGPUDevice device, WGPUQueue queue, WGPUTextureFormat format); void add_sequence(std::shared_ptr<Sequence> seq, float start_time, int priority = 0); void render_frame(float global_time, float beat, float peak, @@ -122,7 +123,7 @@ class MainSequence { WGPUTextureView framebuffer_view_a_ = nullptr; WGPUTexture framebuffer_b_ = nullptr; WGPUTextureView framebuffer_view_b_ = nullptr; - + WGPUTexture depth_texture_ = nullptr; WGPUTextureView depth_view_ = nullptr; |
