summaryrefslogtreecommitdiff
path: root/src/effects/passthrough_effect_v2.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/effects/passthrough_effect_v2.h')
-rw-r--r--src/effects/passthrough_effect_v2.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/effects/passthrough_effect_v2.h b/src/effects/passthrough_effect_v2.h
new file mode 100644
index 0000000..813361e
--- /dev/null
+++ b/src/effects/passthrough_effect_v2.h
@@ -0,0 +1,19 @@
+// Passthrough effect v2 - simple copy input to output
+
+#pragma once
+
+#include "gpu/effect_v2.h"
+
+class PassthroughEffectV2 : public EffectV2 {
+ public:
+ PassthroughEffectV2(const GpuContext& ctx, const std::vector<std::string>& inputs,
+ const std::vector<std::string>& outputs);
+
+ void render(WGPUCommandEncoder encoder, const UniformsSequenceParams& params,
+ NodeRegistry& nodes) override;
+
+ private:
+ WGPURenderPipeline pipeline_;
+ WGPUBindGroup bind_group_;
+ WGPUSampler sampler_;
+};