summaryrefslogtreecommitdiff
path: root/src/gpu/effects/fade_effect.h
blob: 2048c2a2c90db9df0d18eef01ebd211209dba911 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// This file is part of the 64k demo project.
// It declares the FadeEffect - fades to/from black.

#pragma once

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

class FadeEffect : public PostProcessEffect {
 public:
  FadeEffect(const GpuContext& ctx);
  void render(WGPURenderPassEncoder pass, float time, float beat,
              float intensity, float aspect_ratio) override;
  void update_bind_group(WGPUTextureView input_view) override;
};