diff options
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; |
