summaryrefslogtreecommitdiff
path: root/src/effects/scene1_effect.h
blob: 781cbae9785aea41f7fc55cf256e7cdf8182a822 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// Scene1 effect - raymarching cube & sphere scene

#pragma once

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

class Scene1 : public Effect {
 public:
  Scene1(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:
  RenderPipeline pipeline_;
  BindGroup bind_group_;
};