summaryrefslogtreecommitdiff
path: root/src/effects/heptagon_effect.h
blob: 9f148a1d46947dbe565e79701631c30a6ece0b8e (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
25
// Heptagon effect v2 - scene rendering effect

#pragma once

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

class HeptagonEffect : public Effect {
 public:
  HeptagonEffect(const GpuContext& ctx, const std::vector<std::string>& inputs,
                   const std::vector<std::string>& outputs);
  ~HeptagonEffect();

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

 private:
  WGPURenderPipeline pipeline_;
  WGPUBindGroup bind_group_;
  WGPUSampler sampler_;
  WGPUTexture dummy_texture_;
  WGPUTextureView dummy_texture_view_;
  UniformBuffer<UniformsSequenceParams> uniforms_buffer_;
};