Enum gpu_alloc::MapError [−][src]
pub enum MapError {
OutOfDeviceMemory,
OutOfHostMemory,
NonHostVisible,
MapFailed,
AlreadyMapped,
}
Expand description
Enumeration of possible errors that may occur during memory mapping.
Variants
Backend reported that device memory has been exhausted.
Deallocating device memory from the same heap may increase chance
that another mapping would succeed.
Backend reported that host memory has been exhausted.
Deallocating host memory may increase chance that another mapping would succeed.
Attempt to map memory block with non-host-visible memory type.
Ensure to include UsageFlags::HOST_ACCESS
into allocation request
when memory mapping is intended.
Map failed for implementation specific reason.
For Vulkan backend this includes failed attempt
to allocate large enough virtual address space.
Mapping failed due to block being already mapped.
Trait Implementations
Performs the conversion.
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for MapError
impl UnwindSafe for MapError
Blanket Implementations
Mutably borrows from an owned value. Read more