diff options
Diffstat (limited to 'src/effects/fade_effect.h')
| -rw-r--r-- | src/effects/fade_effect.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/effects/fade_effect.h b/src/effects/fade_effect.h new file mode 100644 index 0000000..8cd7006 --- /dev/null +++ b/src/effects/fade_effect.h @@ -0,0 +1,20 @@ +// 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/post_process_helper.h" +#include "gpu/gpu.h" +#include "gpu/uniform_helper.h" + +class FadeEffect : public PostProcessEffect { + public: + FadeEffect(const GpuContext& ctx); + void render(WGPURenderPassEncoder pass, + const CommonPostProcessUniforms& uniforms) override; + void update_bind_group(WGPUTextureView input_view) override; + + private: + GpuBuffer params_buffer_; +}; |
