Route Canvas erase setup through helper

This commit is contained in:
2026-06-13 05:21:43 +02:00
parent a57d9f18f2
commit c3af4518a6
4 changed files with 32 additions and 14 deletions

View File

@@ -3009,6 +3009,10 @@ Results:
shader setup helper for `CompErase` uniforms, while keeping per-onion-frame
alpha updates, texture binding, temporary erase texture selection, and draw
execution in the retained node path.
- `Canvas::stroke_commit` and `Canvas::draw_merge` retained erase compositing
now share the stroke erase shader setup helper, while texture binding, mask
RTT binding, dirty/layer mutation, framebuffer feedback, and draw execution
remain in retained Canvas code.
- `Canvas::stroke_draw_mix` now shares the retained stroke composite shader
helper for mixer-pass `CompDraw` setup, while preserving its caller-specific
texture slot uniforms. Mixer framebuffer/scissor state, sampler and texture