Expand description
Β§Prepare pass
TODO: document this!
StructsΒ§
- Linear
Gradient πSegment Pattern - Pattern builder for a single fast-path two-stop segment emitted by
decompose_axis_aligned_gradient. Holds the segmentβs gradient line and stop colors (in segment-local coords);buildtranslates start/end into the primβs spatial-node space by addingctx.prim_origin.
ConstantsΒ§
- MAX_
MASK_ πSIZE - MIN_
BRUSH_ πSPLIT_ AREA
FunctionsΒ§
- adjust_
mask_ πscale_ for_ max_ size - build_
segments_ πif_ needed - can_
use_ πclip_ chain_ for_ quad_ path - prepare_
interned_ πprim_ for_ render - Prepare an interned primitive for rendering, by requesting resources, render tasks etc. This is equivalent to the prepare_prim_for_render_inner call for old style primitives.
- prepare_
picture - The entry point of the preapre pass.
- prepare_
prim_ πfor_ render - prepare_
primitives π - update_
brush_ segment_ clip_ task - Write out to the clip mask instances array the correct clip mask config for this segment.
- update_
clip_ task - update_
clip_ πtask_ for_ brush - write_
brush_ πsegment_ description - write_
segment π