diff options
Diffstat (limited to 'src/effects/flash_effect.h')
| -rw-r--r-- | src/effects/flash_effect.h | 21 |
1 files changed, 8 insertions, 13 deletions
diff --git a/src/effects/flash_effect.h b/src/effects/flash_effect.h index b9bbff8..052957d 100644 --- a/src/effects/flash_effect.h +++ b/src/effects/flash_effect.h @@ -4,23 +4,18 @@ #pragma once #include "gpu/effect.h" #include "gpu/uniform_helper.h" +#include "gpu/wgpu_resource.h" -class FlashEffect : public Effect { +class Flash : public Effect { public: - FlashEffect(const GpuContext& ctx, - const std::vector<std::string>& inputs, - const std::vector<std::string>& outputs); - ~FlashEffect() override; + Flash(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, + 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_; }; |
