pub fn plan_writers(
frame: &FrameView<'_>,
mask_flags: &[PartMaskFlags],
) -> MaskWritersExpand description
Plan the frame’s stencil writers by walking draw_batches, mirroring the
WebGL MaskPlanner.plan. mask_flags is indexed by part index (static
ssab data). Returns writers in ascending rank order, capped at
MAX_MASK_WRITERS.
A writer’s texture_hash comes from the batch it belongs to (like WebGL):
pure Mask batches carry texture_hash == 0 (→ no cutout, whole geometry),
while clipping writers inherit their content batch’s real texture.
op_invert is the part’s own mask_influence; inside an instance the caller
ANDs it with the instance part’s before the writer is drawn.
frame.frame_data is verified first, and bytes that are not a FrameData
plan no writers.