pub struct GpuMemoryDetails {
pub total_memory: u64,
pub used_memory: u64,
pub memory_by_type: HashMap<String, u64>,
pub large_allocations: Vec<AllocationInfo>,
}Expand description
GPU memory usage details
Fields§
§total_memory: u64§used_memory: u64§memory_by_type: HashMap<String, u64>§large_allocations: Vec<AllocationInfo>Trait Implementations§
Source§impl Clone for GpuMemoryDetails
impl Clone for GpuMemoryDetails
Source§fn clone(&self) -> GpuMemoryDetails
fn clone(&self) -> GpuMemoryDetails
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 moreSource§impl Debug for GpuMemoryDetails
impl Debug for GpuMemoryDetails
Source§impl Default for GpuMemoryDetails
impl Default for GpuMemoryDetails
Source§fn default() -> GpuMemoryDetails
fn default() -> GpuMemoryDetails
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for GpuMemoryDetails
impl<'de> Deserialize<'de> for GpuMemoryDetails
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for GpuMemoryDetails
impl RefUnwindSafe for GpuMemoryDetails
impl Send for GpuMemoryDetails
impl Sync for GpuMemoryDetails
impl Unpin for GpuMemoryDetails
impl UnsafeUnpin for GpuMemoryDetails
impl UnwindSafe for GpuMemoryDetails
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