summaryrefslogtreecommitdiff
path: root/src/effects/passthrough_effect_v2.h
blob: a272b877ddff8d236a1e1851db6e96d1aab2cd42 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// Passthrough effect v2 - simple copy input to output

#pragma once

#include "gpu/effect_v2.h"
#include "gpu/uniform_helper.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_;
  UniformBuffer<UniformsSequenceParams> uniforms_buffer_;
};