blob: 3813fa84ea79a1c5d63c213fedbe8260aebc371b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
// Passthrough effect v2 - simple copy input to output
#pragma once
#include "gpu/effect.h"
#include "gpu/uniform_helper.h"
class Passthrough : public Effect {
public:
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:
WGPURenderPipeline pipeline_;
WGPUBindGroup bind_group_;
};
|