summaryrefslogtreecommitdiff
path: root/src/effects/passthrough_effect.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/effects/passthrough_effect.h')
-rw-r--r--src/effects/passthrough_effect.h20
1 files changed, 6 insertions, 14 deletions
diff --git a/src/effects/passthrough_effect.h b/src/effects/passthrough_effect.h
index 1c60e02..285663f 100644
--- a/src/effects/passthrough_effect.h
+++ b/src/effects/passthrough_effect.h
@@ -1,21 +1,13 @@
// Passthrough effect v2 - simple copy input to output
#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 Passthrough : public Effect {
- public:
+struct Passthrough : public WgslEffect {
Passthrough(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,
+ passthrough_shader_wgsl) {}
};