pub struct VramPoolStats {
pub total_capacity: usize,
pub allocated_bytes: usize,
pub available_bytes: usize,
pub num_allocations: usize,
pub num_pinned: usize,
pub num_dirty: usize,
}Expand description
Statistics about VRAM pool usage
Fields§
§total_capacity: usizeTotal usable capacity in bytes
allocated_bytes: usizeCurrently allocated bytes
available_bytes: usizeAvailable bytes for new allocations
num_allocations: usizeNumber of active allocations
num_pinned: usizeNumber of pinned allocations
num_dirty: usizeNumber of dirty allocations
Trait Implementations§
Source§impl Clone for VramPoolStats
impl Clone for VramPoolStats
Source§fn clone(&self) -> VramPoolStats
fn clone(&self) -> VramPoolStats
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for VramPoolStats
impl RefUnwindSafe for VramPoolStats
impl Send for VramPoolStats
impl Sync for VramPoolStats
impl Unpin for VramPoolStats
impl UnwindSafe for VramPoolStats
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