diff options
Diffstat (limited to 'src/effects/heptagon_effect.h')
| -rw-r--r-- | src/effects/heptagon_effect.h | 18 |
1 files changed, 7 insertions, 11 deletions
diff --git a/src/effects/heptagon_effect.h b/src/effects/heptagon_effect.h index 9f148a1..4563e47 100644 --- a/src/effects/heptagon_effect.h +++ b/src/effects/heptagon_effect.h @@ -4,22 +4,18 @@ #include "gpu/effect.h" #include "gpu/uniform_helper.h" +#include "gpu/wgpu_resource.h" -class HeptagonEffect : public Effect { +class Heptagon : public Effect { public: - HeptagonEffect(const GpuContext& ctx, const std::vector<std::string>& inputs, - const std::vector<std::string>& outputs); - ~HeptagonEffect(); + Heptagon(const GpuContext& ctx, const std::vector<std::string>& inputs, + const std::vector<std::string>& outputs, float start_time, + float end_time); void render(WGPUCommandEncoder encoder, const UniformsSequenceParams& params, NodeRegistry& nodes) override; private: - WGPURenderPipeline pipeline_; - WGPUBindGroup bind_group_; - WGPUSampler sampler_; - WGPUTexture dummy_texture_; - WGPUTextureView dummy_texture_view_; - UniformBuffer<UniformsSequenceParams> uniforms_buffer_; + RenderPipeline pipeline_; + BindGroup bind_group_; }; - |
