pub enum Memory {
Device,
Shared,
Upload,
External(ExternalMemorySource),
}Variants§
Device
Device-local memory. Fast for GPU operations.
Shared CPU-GPU memory. Not so fast for GPU.
Upload
Upload memory. Can only be transferred on GPU.
External(ExternalMemorySource)
External memory
Implementations§
Trait Implementations§
impl Copy for Memory
impl StructuralPartialEq for Memory
Auto Trait Implementations§
impl Freeze for Memory
impl RefUnwindSafe for Memory
impl Send for Memory
impl Sync for Memory
impl Unpin for Memory
impl UnwindSafe for Memory
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