diff options
Diffstat (limited to 'src/effects/heptagon_effect.h')
| -rw-r--r-- | src/effects/heptagon_effect.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/src/effects/heptagon_effect.h b/src/effects/heptagon_effect.h new file mode 100644 index 0000000..9f148a1 --- /dev/null +++ b/src/effects/heptagon_effect.h @@ -0,0 +1,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_; +}; + |
