diff options
Diffstat (limited to 'src/effects/scratch_effect.h')
| -rw-r--r-- | src/effects/scratch_effect.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/effects/scratch_effect.h b/src/effects/scratch_effect.h new file mode 100644 index 0000000..fb36a96 --- /dev/null +++ b/src/effects/scratch_effect.h @@ -0,0 +1,20 @@ +// Scratch effect - film scratch overlay post-process +// Reads input buffer, additively blends scratch_lines() on top. + +#pragma once +#include "gpu/effect.h" +#include "gpu/wgpu_resource.h" + +class Scratch : public Effect { + public: + Scratch(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_; +}; |
