pub struct VramBudgetEviction {
pub max_tiles: usize,
pub active_tiles: HashMap<u64, u64>,
}Expand description
Eviction policy to manage strict VRAM budgets in 42MB limits.
Fields§
§max_tiles: usize§active_tiles: HashMap<u64, u64>Implementations§
Source§impl VramBudgetEviction
impl VramBudgetEviction
Sourcepub fn access_tile(&mut self, tile_id: u64, timestamp: u64)
pub fn access_tile(&mut self, tile_id: u64, timestamp: u64)
Records a tile access at timestamp for LRU eviction.
Sourcepub fn enforce_budget(&mut self) -> Vec<u64>
pub fn enforce_budget(&mut self) -> Vec<u64>
Returns a list of tile IDs to evict to stay under the budget.
Auto Trait Implementations§
impl Freeze for VramBudgetEviction
impl RefUnwindSafe for VramBudgetEviction
impl Send for VramBudgetEviction
impl Sync for VramBudgetEviction
impl Unpin for VramBudgetEviction
impl UnsafeUnpin for VramBudgetEviction
impl UnwindSafe for VramBudgetEviction
Blanket Implementations§
§impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
Aggregate shares in an MPC protocol.
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more