summaryrefslogtreecommitdiff
path: root/src/effects/placeholder_effect_v2.h
blob: aa9ed753f8ec3e438c93d4dd26609e4d381e2c93 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// Placeholder effect v2 - temporary passthrough for unported effects
// TODO: Replace with actual effect implementations

#pragma once

#include "gpu/effect_v2.h"
#include "gpu/uniform_helper.h"

class PlaceholderEffectV2 : public EffectV2 {
 public:
  PlaceholderEffectV2(const GpuContext& ctx, const std::vector<std::string>& inputs,
                      const std::vector<std::string>& outputs,
                      const char* placeholder_name = "UnknownEffect");

  void render(WGPUCommandEncoder encoder, const UniformsSequenceParams& params,
              NodeRegistry& nodes) override;

 private:
  WGPURenderPipeline pipeline_;
  WGPUBindGroup bind_group_;
  WGPUSampler sampler_;
  UniformBuffer<UniformsSequenceParams> uniforms_buffer_;
  const char* name_;
};