Enum gpu_allocator::MemoryLocation [−][src]
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
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
Mutably borrows from an owned value. Read more