Enum gpu_alloc::AllocationError [−][src]
pub enum AllocationError {
OutOfDeviceMemory,
OutOfHostMemory,
NoCompatibleMemoryTypes,
TooManyObjects,
}
Expand description
Enumeration of possible errors that may occur during memory allocation.
Variants
Backend reported that device memory has been exhausted.
Deallocating device memory from the same heap may increase chance
that another allocation would succeed.
Backend reported that host memory has been exhausted.
Deallocating host memory may increase chance that another allocation would succeed.
Allocation request cannot be fullfilled as no available memory types allowed
by Request.memory_types
mask is compatible with request.usage
.
Reached limit on allocated memory objects count.
Deallocating device memory may increase chance that another allocation would succeed.
Especially dedicated memory blocks.
If this error is returned when memory heaps are far from exhausted
Config
should be tweaked to allocate larger memory objects.
Trait Implementations
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for AllocationError
impl Send for AllocationError
impl Sync for AllocationError
impl Unpin for AllocationError
impl UnwindSafe for AllocationError
Blanket Implementations
Mutably borrows from an owned value. Read more