pub struct CommandSegment {
pub slot: u32,
pub slot_offset: usize,
pub tape_start: usize,
pub tape_end: usize,
pub bounds: Rect,
pub prev_recolors: Vec<u32>,
}Expand description
One retained stretch of a command’s recording, addressed by the retained
snapshot’s tape range. The id is stable for the segment’s lifetime —
renderer-side retained slots key on it, and it survives other segments
dying.
Fields§
§slot: u32The capture identity this segment’s content lives under: renderer retained slots key on the (command, slot) pair. Slot ids are allocated at partition, whose emission carries the capture content; split pieces inherit the parent’s slot and address into it, so a split never needs a recapture.
slot_offset: usizeThis segment’s first record within the slot’s captured content.
tape_start: usize§tape_end: usize§bounds: RectLoose logical bounds at capture.
prev_recolors: Vec<u32>Span-relative record offsets (ascending) this segment’s span
recolored on the PREVIOUS verified frame. The renderer’s slot paint
is a patched mirror, never rebuilt, so a record whose color returns
EXACTLY to its capture value needs an explicit restore patch — pure
diff-vs-snapshot emission would leave the mirror stale forever
(see merge_color_restores).
Trait Implementations§
Source§impl Clone for CommandSegment
impl Clone for CommandSegment
Source§fn clone(&self) -> CommandSegment
fn clone(&self) -> CommandSegment
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more