pub enum AllocationError {
OutOfDeviceMemory,
OutOfHostMemory,
NoCompatibleMemoryTypes,
TooManyObjects,
}
Expand description
Enumeration of possible errors that may occur during memory allocation.
Variants§
OutOfDeviceMemory
Backend reported that device memory has been exhausted.
Deallocating device memory from the same heap may increase chance
that another allocation would succeed.
OutOfHostMemory
Backend reported that host memory has been exhausted.
Deallocating host memory may increase chance that another allocation would succeed.
NoCompatibleMemoryTypes
Allocation request cannot be fulfilled as no available memory types allowed
by Request.memory_types
mask is compatible with request.usage
.
TooManyObjects
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§
Source§impl Clone for AllocationError
impl Clone for AllocationError
Source§fn clone(&self) -> AllocationError
fn clone(&self) -> AllocationError
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more