pub enum Realm {
Host,
Device,
}Expand description
Which memory a report is about. The two are counted separately because they are separately budgeted and separately exhausted: a host allocation and a device allocation for the same texture are two different costs.
Variants§
Host
Process memory: what the CPU allocates and the Rust heap holds.
Device
Device memory: what a GPU backend allocates, whether that is discrete VRAM or a unified-memory working set.
Implementations§
Trait Implementations§
impl Copy for Realm
impl Eq for Realm
impl StructuralPartialEq for Realm
Auto Trait Implementations§
impl Freeze for Realm
impl RefUnwindSafe for Realm
impl Send for Realm
impl Sync for Realm
impl Unpin for Realm
impl UnsafeUnpin for Realm
impl UnwindSafe for Realm
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