pub struct ResidentPages {
pub pages: Vec<ResidentPage>,
pub frame: u64,
}Expand description
The retained pages a SurfaceRenderer holds resident after its last
frame — the renderer’s side of the resident-key ledger.
Plain data, so this crate needs no frust-core edge: a shell converts it
into frust_core::RetainedLedger (RetainedLedger::from_entries) and hands
it to the UI tree for the next paint, one frame stale by design.
Fields§
§pages: Vec<ResidentPage>Resident pages, in no particular order.
frame: u64The paint serial (SurfaceRenderer::note_scene_serial) of the last
scene whose retained-store commit the renderer completed before this
was taken — what lets the UI tell a page holding its latest recording
from one holding an older recording under the same key. A refused or
failed frame does not advance it; the empty ledger a store clear,
surface destroy or scale change leaves carries the last committed
serial (0 before any).