pub enum MemoryLocation {
CpuToGpu,
GpuOnly,
GpuToCpu,
}
Expand description
The intended location of the memory.
Variants§
CpuToGpu
Mainly used for uploading data to the GPU.
GpuOnly
Used as fast access memory for the GPU.
GpuToCpu
Mainly used for downloading data from the GPU.
Trait Implementations§
Source§impl Clone for MemoryLocation
impl Clone for MemoryLocation
Source§fn clone(&self) -> MemoryLocation
fn clone(&self) -> MemoryLocation
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 MemoryLocation
impl Debug for MemoryLocation
Source§impl PartialEq for MemoryLocation
impl PartialEq for MemoryLocation
impl Copy for MemoryLocation
impl Eq for MemoryLocation
impl StructuralPartialEq for MemoryLocation
Auto Trait Implementations§
impl Freeze for MemoryLocation
impl RefUnwindSafe for MemoryLocation
impl Send for MemoryLocation
impl Sync for MemoryLocation
impl Unpin for MemoryLocation
impl UnwindSafe for MemoryLocation
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