Enum gpu_allocator::MemoryLocation
source · [−]pub enum MemoryLocation {
Unknown,
GpuOnly,
CpuToGpu,
GpuToCpu,
}
Variants
Unknown
The allocated resource is stored at an unknown memory location; let the driver decide what’s the best location
GpuOnly
Store the allocation in GPU only accessible memory - typically this is the faster GPU resource and this should be where most of the allocations live.
CpuToGpu
Memory useful for uploading data to the GPU and potentially for constant buffers
GpuToCpu
Memory useful for CPU readback of data
Trait Implementations
sourceimpl Clone for MemoryLocation
impl Clone for MemoryLocation
sourcefn clone(&self) -> MemoryLocation
fn clone(&self) -> MemoryLocation
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for MemoryLocation
impl Debug for MemoryLocation
sourceimpl Hash for MemoryLocation
impl Hash for MemoryLocation
sourceimpl PartialEq<MemoryLocation> for MemoryLocation
impl PartialEq<MemoryLocation> for MemoryLocation
sourcefn eq(&self, other: &MemoryLocation) -> bool
fn eq(&self, other: &MemoryLocation) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
impl Copy for MemoryLocation
impl Eq for MemoryLocation
impl StructuralEq for MemoryLocation
impl StructuralPartialEq for MemoryLocation
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more