blob: 3360a5fc5c34bf5ca04aaf7a0834d0ab19accb7d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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/effects/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_;
};
|