diff options
Diffstat (limited to 'src/effects/flash_effect.h')
| -rw-r--r-- | src/effects/flash_effect.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/src/effects/flash_effect.h b/src/effects/flash_effect.h new file mode 100644 index 0000000..b9bbff8 --- /dev/null +++ b/src/effects/flash_effect.h @@ -0,0 +1,26 @@ +// Flash effect for visual sync testing +// Pulses white based on beat timing + +#pragma once +#include "gpu/effect.h" +#include "gpu/uniform_helper.h" + +class FlashEffect : public Effect { + public: + FlashEffect(const GpuContext& ctx, + const std::vector<std::string>& inputs, + const std::vector<std::string>& outputs); + ~FlashEffect() override; + + void render(WGPUCommandEncoder encoder, + const UniformsSequenceParams& params, + NodeRegistry& nodes) override; + + private: + WGPURenderPipeline pipeline_; + WGPUBindGroup bind_group_; + WGPUSampler sampler_; + WGPUTexture dummy_texture_; + WGPUTextureView dummy_texture_view_; + UniformBuffer<UniformsSequenceParams> uniforms_buffer_; +}; |
