pub struct VideoMemoryInfo {
pub local_current_bytes: u64,
pub local_budget_bytes: u64,
pub non_local_current_bytes: u64,
pub non_local_budget_bytes: u64,
}Expand description
Process GPU memory usage reported by the OS / driver (when available).
On DX12 this comes from IDXGIAdapter3::QueryVideoMemoryInfo. Other backends
may leave this unset; callers can still use tracked allocator bytes.
Fields§
§local_current_bytes: u64Bytes currently used in the local (device) memory segment.
local_budget_bytes: u64OS-reported budget for the local segment.
non_local_current_bytes: u64Bytes currently used in the non-local (system / shared) segment, if queried.
non_local_budget_bytes: u64OS-reported budget for the non-local segment.
Trait Implementations§
Source§impl Clone for VideoMemoryInfo
impl Clone for VideoMemoryInfo
Source§fn clone(&self) -> VideoMemoryInfo
fn clone(&self) -> VideoMemoryInfo
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for VideoMemoryInfo
Source§impl Debug for VideoMemoryInfo
impl Debug for VideoMemoryInfo
Source§impl Default for VideoMemoryInfo
impl Default for VideoMemoryInfo
Source§fn default() -> VideoMemoryInfo
fn default() -> VideoMemoryInfo
Returns the “default value” for a type. Read more
impl Eq for VideoMemoryInfo
Source§impl PartialEq for VideoMemoryInfo
impl PartialEq for VideoMemoryInfo
impl StructuralPartialEq for VideoMemoryInfo
Auto Trait Implementations§
impl Freeze for VideoMemoryInfo
impl RefUnwindSafe for VideoMemoryInfo
impl Send for VideoMemoryInfo
impl Sync for VideoMemoryInfo
impl Unpin for VideoMemoryInfo
impl UnsafeUnpin for VideoMemoryInfo
impl UnwindSafe for VideoMemoryInfo
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