diff options
Diffstat (limited to 'src/effects/passthrough_effect.h')
| -rw-r--r-- | src/effects/passthrough_effect.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/effects/passthrough_effect.h b/src/effects/passthrough_effect.h new file mode 100644 index 0000000..125ac5a --- /dev/null +++ b/src/effects/passthrough_effect.h @@ -0,0 +1,21 @@ +// Passthrough effect v2 - simple copy input to output + +#pragma once + +#include "gpu/effect.h" +#include "gpu/uniform_helper.h" + +class PassthroughEffect : public Effect { + public: + PassthroughEffect(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_; + UniformBuffer<UniformsSequenceParams> uniforms_buffer_; +}; |
