From ca8acd5e7c0556bee7cb21f5ff280c5fd1f47801 Mon Sep 17 00:00:00 2001 From: skal Date: Wed, 20 May 2026 23:12:08 +0200 Subject: fix: audio & effects cleanup — dead code removal, simplifications MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/effects/rotating_cube_effect.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/effects/rotating_cube_effect.h') 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& inputs, const std::vector& 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; -- cgit v1.2.3