Re-exports§
pub use crate::graph::quad_bounds;
Structs§
Enums§
- Draw
Placement - Resolved
Brush - A layer-resolved brush, split at the solid/gradient boundary.
Functions§
- apply_
layer_ to_ brush - apply_
layer_ to_ color - The colour a primitive is actually painted in, once this layer has had its say.
- combine_
layers - compose_
color_ filters - primitives_
for_ placement - primitives_
for_ placement_ retained - The full retained form: the compact recording buffers come from and return to the caller alongside the materialized primitives, so a command re-recording every frame allocates nothing in the steady state.
- primitives_
for_ placement_ reusing primitives_for_placementrecording intostoragethe caller retains between frames. A command that re-records every frame keeps one buffer whose capacity was earned on earlier frames; only the rare marker-bearing recording pays for a second output vector.- primitives_
for_ placement_ verified primitives_for_placement_retainedwith per-command similarity verification: whenreplaycarries the command’s state, the freshly recorded compact form advances it BEFORE materialization, yielding the frame’s retained/dynamic span structure in primitive space. Rendering still materializes everything — consuming the spans (and skipping materialization for retained ones) is the renderer-side half of the retention work. The frame is only returned for marker-free recordings: content splitting reindexes the primitive vector, and no game-scale command records content markers.- resolve_
layer_ brush apply_layer_to_brushwithout the solid-brush clone: the borrowed brush’s color is copied (or layer-adjusted) inline, and only gradients are cloned. Produces exactly the valuesapply_layer_to_brushwould — both branches below mirror its fast path and itsSolidarm verbatim.- scale_
corner_ radii