From 7041babc9e5333d01191f3eb80fd711bd26cd4f7 Mon Sep 17 00:00:00 2001 From: skal Date: Tue, 17 Feb 2026 08:46:01 +0100 Subject: feat: add time-based effect activation with auto-passthrough Effects now accept start/end time parameters and automatically passthrough when inactive. Implements buffer chain integrity via compile-time validation. - Effect base class: dispatch_render() checks time bounds, auto-passthroughs 1:1 input/output effects outside [start, end] interval - seq_compiler.py: validates producer/consumer lifespan constraints for multi-output effects, adds --validate flag, always validates before codegen - Updated all 9 effect classes and test fixtures to pass start/end times - check_all.sh: includes timeline validation step - Tests: 34/34 passing, demo runs successfully Co-Authored-By: Claude Sonnet 4.5 --- src/effects/heptagon_effect.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/effects/heptagon_effect.h') diff --git a/src/effects/heptagon_effect.h b/src/effects/heptagon_effect.h index f4e4f9e..ef05d79 100644 --- a/src/effects/heptagon_effect.h +++ b/src/effects/heptagon_effect.h @@ -8,7 +8,8 @@ class Heptagon : public Effect { public: Heptagon(const GpuContext& ctx, const std::vector& inputs, - const std::vector& outputs); + const std::vector& outputs, float start_time, + float end_time); ~Heptagon(); void render(WGPUCommandEncoder encoder, const UniformsSequenceParams& params, -- cgit v1.2.3