pub enum AllocationCreationError {
VulkanError(VulkanError),
OutOfPoolMemory,
DedicatedAllocationRequired,
BlockSizeExceeded,
SuballocatorBlockSizeExceeded,
}
Expand description
Error that can be returned when creating an allocation using a memory allocator.
Variants
VulkanError(VulkanError)
OutOfPoolMemory
There is not enough memory in the pool.
This is returned when using MemoryAllocatePreference::NeverAllocate
and there is not
enough memory in the pool.
DedicatedAllocationRequired
A dedicated allocation is required but was explicitly forbidden.
This is returned when using MemoryAllocatePreference::NeverAllocate
and the
implementation requires a dedicated allocation.
BlockSizeExceeded
The block size for the allocator was exceeded.
This is returned when using MemoryAllocatePreference::NeverAllocate
and the allocation
size exceeded the block size for all heaps of suitable memory types.
SuballocatorBlockSizeExceeded
The block size for the suballocator was exceeded.
This is returned when using GenericMemoryAllocator<Arc<PoolAllocator<BLOCK_SIZE>>>
if
the allocation size exceeded BLOCK_SIZE
.
Trait Implementations
sourceimpl Clone for AllocationCreationError
impl Clone for AllocationCreationError
sourcefn clone(&self) -> AllocationCreationError
fn clone(&self) -> AllocationCreationError
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more