Enum vulkano::memory::allocator::AllocationCreationError
source · 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§
source§impl Clone for AllocationCreationError
impl Clone for AllocationCreationError
source§fn clone(&self) -> AllocationCreationError
fn clone(&self) -> AllocationCreationError
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for AllocationCreationError
impl Debug for AllocationCreationError
source§impl Display for AllocationCreationError
impl Display for AllocationCreationError
source§impl Error for AllocationCreationError
impl Error for AllocationCreationError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
source§impl From<AllocationCreationError> for BufferError
impl From<AllocationCreationError> for BufferError
source§fn from(err: AllocationCreationError) -> Self
fn from(err: AllocationCreationError) -> Self
source§impl From<AllocationCreationError> for ImageError
impl From<AllocationCreationError> for ImageError
source§fn from(err: AllocationCreationError) -> Self
fn from(err: AllocationCreationError) -> Self
source§impl From<AllocationCreationError> for ImmutableImageCreationError
impl From<AllocationCreationError> for ImmutableImageCreationError
source§fn from(err: AllocationCreationError) -> Self
fn from(err: AllocationCreationError) -> Self
source§impl From<VulkanError> for AllocationCreationError
impl From<VulkanError> for AllocationCreationError
source§fn from(err: VulkanError) -> Self
fn from(err: VulkanError) -> Self
source§impl PartialEq<AllocationCreationError> for AllocationCreationError
impl PartialEq<AllocationCreationError> for AllocationCreationError
source§fn eq(&self, other: &AllocationCreationError) -> bool
fn eq(&self, other: &AllocationCreationError) -> bool
self
and other
values to be equal, and is used
by ==
.