pub enum MemoryAllocatorError {
AllocateDeviceMemory(Validated<VulkanError>),
FindMemoryType,
OutOfPoolMemory,
DedicatedAllocationRequired,
BlockSizeExceeded,
}
Expand description
Error that can be returned when creating an allocation using a memory allocator.
Variants§
AllocateDeviceMemory(Validated<VulkanError>)
Allocating DeviceMemory
failed.
FindMemoryType
Finding a suitable memory type failed.
This is returned from MemoryAllocator::allocate
when
MemoryAllocator::find_memory_type_index
returns None
.
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.
Trait Implementations§
Source§impl Clone for MemoryAllocatorError
impl Clone for MemoryAllocatorError
Source§fn clone(&self) -> MemoryAllocatorError
fn clone(&self) -> MemoryAllocatorError
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more