summaryrefslogtreecommitdiff
path: root/src/effects/heptagon_effect.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/effects/heptagon_effect.h')
-rw-r--r--src/effects/heptagon_effect.h20
1 files changed, 6 insertions, 14 deletions
diff --git a/src/effects/heptagon_effect.h b/src/effects/heptagon_effect.h
index ab7db8d..3762202 100644
--- a/src/effects/heptagon_effect.h
+++ b/src/effects/heptagon_effect.h
@@ -1,21 +1,13 @@
// Heptagon effect v2 - scene rendering effect
#pragma once
+#include "effects/shaders.h"
+#include "gpu/wgsl_effect.h"
-#include "gpu/effect.h"
-#include "gpu/uniform_helper.h"
-#include "gpu/wgpu_resource.h"
-
-class Heptagon : public Effect {
- public:
+struct Heptagon : public WgslEffect {
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:
- RenderPipeline pipeline_;
- BindGroup bind_group_;
+ float end_time)
+ : WgslEffect(ctx, inputs, outputs, start_time, end_time,
+ heptagon_shader_wgsl) {}
};