summaryrefslogtreecommitdiff
path: root/src/effects/heptagon_effect.cc
diff options
context:
space:
mode:
authorskal <pascal.massimino@gmail.com>2026-02-17 13:05:11 +0100
committerskal <pascal.massimino@gmail.com>2026-02-17 13:05:11 +0100
commitbdb1a4e95a545f3f4d88630b8aec6ab771776d99 (patch)
tree97a3a15381a7ff9780644ec8876535dd219f23cf /src/effects/heptagon_effect.cc
parenta32c7456588abf4f44866d0c055fa94d105e8ef7 (diff)
refactor(effects): Streamline uniforms initialization
Centralized uniforms_buffer_ initialization and updates to Effect base class: - init_uniforms_buffer() now automatic in Effect::Effect() - uniforms_buffer_.update() now automatic in dispatch_render() - Removed redundant calls from all effect subclasses - Updated effect.h comments to reflect automatic behavior - Updated EFFECT_WORKFLOW.md templates Benefits: - 16 lines removed from effect implementations - Consistent pattern enforced at compile time - Reduced boilerplate for new effects Tests: 34/34 passing handoff(Claude): Effect base class now handles uniforms automatically
Diffstat (limited to 'src/effects/heptagon_effect.cc')
-rw-r--r--src/effects/heptagon_effect.cc4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/effects/heptagon_effect.cc b/src/effects/heptagon_effect.cc
index c9ec17c..c02efb3 100644
--- a/src/effects/heptagon_effect.cc
+++ b/src/effects/heptagon_effect.cc
@@ -13,7 +13,6 @@ Heptagon::Heptagon(const GpuContext& ctx,
: Effect(ctx, inputs, outputs, start_time, end_time) {
HEADLESS_RETURN_IF_NULL(ctx_.device);
- init_uniforms_buffer();
create_nearest_sampler();
create_dummy_scene_texture();
@@ -27,9 +26,6 @@ void Heptagon::render(WGPUCommandEncoder encoder,
// Get output view (scene effects typically write to output, ignore input)
WGPUTextureView output_view = nodes.get_view(output_nodes_[0]);
- // Update uniforms
- uniforms_buffer_.update(ctx_.queue, params);
-
// Create bind group (use dummy texture for scene effect)
pp_update_bind_group(ctx_.device, pipeline_.get(), bind_group_.get_address(),
dummy_texture_view_.get(), uniforms_buffer_.get(),