summaryrefslogtreecommitdiff
path: root/tools/shadertoy/template.h
blob: 5f105d5e12e37d9242308c941c403789b319ae15 (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
26
// This file is part of the 64k demo project.
// ShaderToy effect boilerplate - REPLACE THIS LINE WITH DESCRIPTION
// TODO: Update description, rename class, adjust parameters

#pragma once

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

// TODO: Rename class to match your effect (e.g., TunnelEffect, PlasmaEffect)
class ShaderToyEffect : public Effect {
 public:
  // TODO: Rename class, keep same constructor signature
  ShaderToyEffect(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_;
};