pub struct GpuMemoryStats {
pub total_allocated: usize,
pub available: usize,
pub utilization: f32,
pub buffer_count: usize,
}
Expand description
GPU memory statistics
Fields§
§total_allocated: usize
Total allocated memory in bytes
available: usize
Available memory in bytes
utilization: f32
Memory utilization percentage (0.0-1.0)
buffer_count: usize
Number of active buffers
Trait Implementations§
Source§impl Clone for GpuMemoryStats
impl Clone for GpuMemoryStats
Source§fn clone(&self) -> GpuMemoryStats
fn clone(&self) -> GpuMemoryStats
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 GpuMemoryStats
impl Debug for GpuMemoryStats
Source§impl<'de> Deserialize<'de> for GpuMemoryStats
impl<'de> Deserialize<'de> for GpuMemoryStats
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 GpuMemoryStats
impl RefUnwindSafe for GpuMemoryStats
impl Send for GpuMemoryStats
impl Sync for GpuMemoryStats
impl Unpin for GpuMemoryStats
impl UnwindSafe for GpuMemoryStats
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