Skip to main content

Module prepare

Module prepare 

Source
Expand description

Β§Prepare pass

TODO: document this!

StructsΒ§

LinearGradientSegmentPattern πŸ”’
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); build translates start/end into the prim’s spatial-node space by adding ctx.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 πŸ”’