summaryrefslogtreecommitdiff
path: root/src/effects/particles_effect.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/effects/particles_effect.h')
-rw-r--r--src/effects/particles_effect.h13
1 files changed, 5 insertions, 8 deletions
diff --git a/src/effects/particles_effect.h b/src/effects/particles_effect.h
index 76c2ef4..e855b7b 100644
--- a/src/effects/particles_effect.h
+++ b/src/effects/particles_effect.h
@@ -18,19 +18,16 @@ struct Particle {
float color[4];
};
-class ParticlesEffect : public Effect {
+class Particles : public Effect {
public:
- ParticlesEffect(const GpuContext& ctx,
- const std::vector<std::string>& inputs,
- const std::vector<std::string>& outputs);
- void render(WGPUCommandEncoder encoder,
- const UniformsSequenceParams& params,
+ Particles(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:
ComputePass compute_pass_;
RenderPass render_pass_;
GpuBuffer particles_buffer_;
- UniformBuffer<UniformsSequenceParams> uniforms_;
};
-