diff options
| author | skal <pascal.massimino@gmail.com> | 2026-05-20 23:12:08 +0200 |
|---|---|---|
| committer | skal <pascal.massimino@gmail.com> | 2026-05-20 23:21:59 +0200 |
| commit | ca8acd5e7c0556bee7cb21f5ff280c5fd1f47801 (patch) | |
| tree | 3811886d12f075ba196f2a7ba2d05c0d5b43574b /src/effects/rotating_cube_effect.h | |
| parent | a91f89c8ea15665853176c05597760d0fcf6e0df (diff) | |
fix: audio & effects cleanup — dead code removal, simplifications
Diffstat (limited to 'src/effects/rotating_cube_effect.h')
| -rw-r--r-- | src/effects/rotating_cube_effect.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/effects/rotating_cube_effect.h b/src/effects/rotating_cube_effect.h index fb321fa..0aa1469 100644 --- a/src/effects/rotating_cube_effect.h +++ b/src/effects/rotating_cube_effect.h @@ -6,6 +6,7 @@ #include "gpu/effect.h" #include "gpu/gpu.h" #include "gpu/uniform_helper.h" +#include "gpu/wgpu_resource.h" #include "util/mini_math.h" class RotatingCube : public Effect { @@ -13,7 +14,6 @@ class RotatingCube : public Effect { RotatingCube(const GpuContext& ctx, const std::vector<std::string>& inputs, const std::vector<std::string>& outputs, float start_time, float end_time); - ~RotatingCube() override; void declare_nodes(NodeRegistry& registry) override; void render(WGPUCommandEncoder encoder, const UniformsSequenceParams& params, @@ -44,8 +44,8 @@ class RotatingCube : public Effect { }; static_assert(sizeof(ObjectData) == 160, "ObjectData size mismatch"); - WGPURenderPipeline pipeline_ = nullptr; - WGPUBindGroup bind_group_ = nullptr; + RenderPipeline pipeline_; + BindGroup bind_group_; GpuBuffer uniform_buffer_; GpuBuffer object_buffer_; float rotation_ = 0.0f; |
