diff options
Diffstat (limited to 'src/effects/flash_effect.cc')
| -rw-r--r-- | src/effects/flash_effect.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/effects/flash_effect.cc b/src/effects/flash_effect.cc index 1d0e629..787e33d 100644 --- a/src/effects/flash_effect.cc +++ b/src/effects/flash_effect.cc @@ -6,7 +6,7 @@ #include "gpu/shaders.h" #include "util/fatal_error.h" -FlashEffect::FlashEffect(const GpuContext& ctx, +Flash::Flash(const GpuContext& ctx, const std::vector<std::string>& inputs, const std::vector<std::string>& outputs) : Effect(ctx, inputs, outputs), pipeline_(nullptr), bind_group_(nullptr), @@ -39,7 +39,7 @@ FlashEffect::FlashEffect(const GpuContext& ctx, dummy_texture_view_ = wgpuTextureCreateView(dummy_texture_, nullptr); } -FlashEffect::~FlashEffect() { +Flash::~Flash() { if (bind_group_) wgpuBindGroupRelease(bind_group_); if (pipeline_) wgpuRenderPipelineRelease(pipeline_); if (sampler_) wgpuSamplerRelease(sampler_); @@ -47,7 +47,7 @@ FlashEffect::~FlashEffect() { if (dummy_texture_) wgpuTextureRelease(dummy_texture_); } -void FlashEffect::render(WGPUCommandEncoder encoder, +void Flash::render(WGPUCommandEncoder encoder, const UniformsSequenceParams& params, NodeRegistry& nodes) { // Get output view (scene effects typically write to output, ignore input) |
