diff options
Diffstat (limited to 'src/effects/flash_effect.h')
| -rw-r--r-- | src/effects/flash_effect.h | 22 |
1 files changed, 7 insertions, 15 deletions
diff --git a/src/effects/flash_effect.h b/src/effects/flash_effect.h index 052957d..1cfe1ee 100644 --- a/src/effects/flash_effect.h +++ b/src/effects/flash_effect.h @@ -1,21 +1,13 @@ -// Flash effect for visual sync testing -// Pulses white based on beat timing +// Flash effect - beat-synchronized white flash #pragma once -#include "gpu/effect.h" -#include "gpu/uniform_helper.h" -#include "gpu/wgpu_resource.h" +#include "effects/shaders.h" +#include "gpu/wgsl_effect.h" -class Flash : public Effect { - public: +struct Flash : public WgslEffect { Flash(const GpuContext& ctx, const std::vector<std::string>& inputs, const std::vector<std::string>& outputs, float start_time, - float end_time); - - void render(WGPUCommandEncoder encoder, const UniformsSequenceParams& params, - NodeRegistry& nodes) override; - - private: - RenderPipeline pipeline_; - BindGroup bind_group_; + float end_time) + : WgslEffect(ctx, inputs, outputs, start_time, end_time, + flash_shader_wgsl) {} }; |
