Expand description
Clip pipeline — apply a MaskShape to a foreground
RenderTexture and write the masked result.
Used by the auto-dispatch path in
Renderer::render_stage
when a container has a
Container::clip set:
the subtree is rendered into a foreground RT, this pipeline samples
the foreground and multiplies in the SDF-based mask alpha, and the
result is composited back onto the parent’s destination.
Today: only MaskShape::RoundedRect. Later issues add more shape
variants; the same pipeline (uniform-driven SDF) handles them by
switching the SDF function in the WGSL.