Enum gpu_allocator::MemoryLocation [−][src]
pub enum MemoryLocation {
Unknown,
GpuOnly,
CpuToGpu,
GpuToCpu,
}Variants
Expand description
The allocated resource is stored at an unknown memory location; let the driver decide what’s the best location
Expand description
Store the allocation in GPU only accesible memory - typically this is the faster GPU resource and this should be where most of the allocations live.
Expand description
Memory useful for uploading data to the GPU and potentially for constant buffers
Expand description
Memory useful for CPU readback of data
Trait Implementations
impl Clone for MemoryLocation[src]
impl Clone for MemoryLocation[src]fn clone(&self) -> MemoryLocation[src]
fn clone(&self) -> MemoryLocation[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]Performs copy-assignment from source. Read more
impl Debug for MemoryLocation[src]
impl Debug for MemoryLocation[src]impl Hash for MemoryLocation[src]
impl Hash for MemoryLocation[src]impl PartialEq<MemoryLocation> for MemoryLocation[src]
impl PartialEq<MemoryLocation> for MemoryLocation[src]impl Copy for MemoryLocation[src]
impl Eq for MemoryLocation[src]
impl StructuralEq for MemoryLocation[src]
impl StructuralPartialEq for MemoryLocation[src]
Auto Trait Implementations
impl RefUnwindSafe for MemoryLocation
impl Send for MemoryLocation
impl Sync for MemoryLocation
impl Unpin for MemoryLocation
impl UnwindSafe for MemoryLocation
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]pub fn borrow_mut(&mut self) -> &mut T[src]
pub fn borrow_mut(&mut self) -> &mut T[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone, [src]
impl<T> ToOwned for T where
T: Clone, [src]type Owned = T
type Owned = TThe resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn to_owned(&self) -> T[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)[src]
pub fn clone_into(&self, target: &mut T)[src]🔬 This is a nightly-only experimental API. (toowned_clone_into)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more