summaryrefslogtreecommitdiff
path: root/src/effects/particle_spray_effect.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/effects/particle_spray_effect.h')
-rw-r--r--src/effects/particle_spray_effect.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/effects/particle_spray_effect.h b/src/effects/particle_spray_effect.h
new file mode 100644
index 0000000..c83d691
--- /dev/null
+++ b/src/effects/particle_spray_effect.h
@@ -0,0 +1,21 @@
+// This file is part of the 64k demo project.
+// It declares the ParticleSprayEffect.
+
+#pragma once
+
+#include "gpu/effect.h"
+#include "effects/particle_defs.h"
+
+class ParticleSprayEffect : public Effect {
+ public:
+ ParticleSprayEffect(const GpuContext& ctx);
+ void compute(WGPUCommandEncoder encoder,
+ const CommonPostProcessUniforms& uniforms) override;
+ void render(WGPURenderPassEncoder pass,
+ const CommonPostProcessUniforms& uniforms) override;
+
+ private:
+ ComputePass compute_pass_;
+ RenderPass render_pass_;
+ GpuBuffer particles_buffer_;
+};