Enum gpu_alloc::MapError [−][src]
pub enum MapError { OutOfDeviceMemory, OutOfHostMemory, NonHostVisible, MapFailed, AlreadyMapped, }
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
impl From<DeviceMapError> for MapError
[src]
impl From<DeviceMapError> for MapError
[src]fn from(err: DeviceMapError) -> Self
[src]
impl From<OutOfMemory> for MapError
[src]
impl From<OutOfMemory> for MapError
[src]fn from(err: OutOfMemory) -> Self
[src]
impl StructuralEq for MapError
[src]
impl StructuralEq for MapError
[src]impl StructuralPartialEq for MapError
[src]
impl StructuralPartialEq for MapError
[src]Auto Trait Implementations
impl RefUnwindSafe for MapError
impl RefUnwindSafe for MapError
impl UnwindSafe for MapError
impl UnwindSafe for MapError