Enum gpu_allocator::MemoryLocation [−][src]
pub enum MemoryLocation {
Unknown,
GpuOnly,
CpuToGpu,
GpuToCpu,
}Variants
The allocated resource is stored at an unknown memory location; let the driver decide what’s the best location
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.
Memory useful for uploading data to the GPU and potentially for constant buffers
Memory useful for CPU readback of data
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for MemoryLocationimpl Send for MemoryLocationimpl Sync for MemoryLocationimpl Unpin for MemoryLocationimpl UnwindSafe for MemoryLocationBlanket Implementations
Mutably borrows from an owned value. Read more