pub struct CellHandoff<P> { /* private fields */ }Expand description
Scheduler zwischen Streamer-Deltas und GPU (siehe Modul-Doku).
Implementations§
Source§impl<P> CellHandoff<P>
impl<P> CellHandoff<P>
pub fn new(cfg: HandoffConfig) -> Self
pub fn config(&self) -> &HandoffConfig
Sourcepub fn enqueue(&mut self, cell: CellKey, payload: P, bytes: u64)
pub fn enqueue(&mut self, cell: CellKey, payload: P, bytes: u64)
Frisch geladene Payload anliefern (aus
StreamDelta::loaded).
Sourcepub fn evict(&mut self, cell: CellKey)
pub fn evict(&mut self, cell: CellKey)
Zelle soll aus dem VRAM (Verdrängung, Tier-Wechsel). Wirkt in jeder Phase — nur nie durch Eingriff in eine laufende Übergabe.
Sourcepub fn is_resident(&self, cell: CellKey) -> bool
pub fn is_resident(&self, cell: CellKey) -> bool
Zeichnet die GPU diese Zelle schon?
Sourcepub fn resident_cells(&self) -> Vec<CellKey>
pub fn resident_cells(&self) -> Vec<CellKey>
Residente Zellen, sortiert — für Render-Setzlisten und Tests.
pub fn stats(&self) -> HandoffStats
Sourcepub fn tick(&mut self, gpu: &mut impl GpuUpload<P>)
pub fn tick(&mut self, gpu: &mut impl GpuUpload<P>)
Ein Frame: retiren, freigeben, übergeben, neu füllen.
Aufruf genau einmal pro Frame, bevor die Batches gesammelt
werden — dann dürfen genau die is_resident-
Zellen gezeichnet werden.
Auto Trait Implementations§
impl<P> Freeze for CellHandoff<P>
impl<P> RefUnwindSafe for CellHandoff<P>where
P: RefUnwindSafe,
impl<P> Send for CellHandoff<P>where
P: Send,
impl<P> Sync for CellHandoff<P>where
P: Sync,
impl<P> Unpin for CellHandoff<P>where
P: Unpin,
impl<P> UnsafeUnpin for CellHandoff<P>
impl<P> UnwindSafe for CellHandoff<P>where
P: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more