Thanks to visit codestin.com
Credit goes to docs.rs

Skip to main content

Module batch

Module batch 

Source

Structs§

BackdropBoundary
Marker emitted per element that has a resolved backdrop-filter.
BatchCache
Per-frame cache that stores the actual QuadInstance and GlyphInstance data emitted by each node in the previous frame. When a node has neither PAINT nor SUBTREE_PAINT the batch builder extends the current batch with the stored instances instead of regenerating them.
BatchRange
Records the primitives produced by a single node (and its subtree) in the previous frame for a specific layer. Used by BatchCache to replay cached output for clean (non-dirty) nodes without rebuilding.
FrameBatch
ImageBatch
LayeredBatch
ShapedTextCache
Cache for shaped text layouts. Keyed on text content + font params + width.
SvgDrawCall
One queued SVG draw. geometry is an Arc pointer into the tessellation cache; translate and scale map the local SVG user units into pixel coordinates, clip_rect is the pixel space scissor rectangle inherited from containing overflow clips, color_tint is a per draw multiplier (used to honor element level color inheritance for currentColor), and opacity is the multiplied element opacity.

Functions§

build_render_batch
clear_paint_flags_subtree
Clear PAINT and SUBTREE_PAINT flags on every node in a subtree after a frame has been rendered. Call this after build_render_batch completes. This requires mutable access to the arena; kept as a separate step so walk_for_batch can retain a shared &NodeArena borrow.
emit_select_overlays
Walk the arena and emit select-specific rendering: