Enum gfx_hal::pso::AllocationError
source · pub enum AllocationError {
OutOfHostMemory,
OutOfDeviceMemory,
OutOfPoolMemory,
FragmentedPool,
IncompatibleLayout,
}
Expand description
An error allocating descriptor sets from a pool.
Variants
OutOfHostMemory
Memory allocation on the host side failed. This could be caused by a lack of memory or pool fragmentation.
OutOfDeviceMemory
Memory allocation on the host side failed. This could be caused by a lack of memory or pool fragmentation.
OutOfPoolMemory
Memory allocation failed as there is not enough in the pool. This could be caused by too many descriptor sets being created.
FragmentedPool
Memory allocation failed due to pool fragmentation.
IncompatibleLayout
Descriptor set allocation failed as the layout is incompatible with the pool.
Trait Implementations
sourceimpl Clone for AllocationError
impl Clone for AllocationError
sourcefn clone(&self) -> AllocationError
fn clone(&self) -> AllocationError
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for AllocationError
impl Debug for AllocationError
sourceimpl Display for AllocationError
impl Display for AllocationError
sourceimpl Fail for AllocationError
impl Fail for AllocationError
sourcefn cause(&self) -> Option<&dyn Fail>
fn cause(&self) -> Option<&dyn Fail>
Returns a reference to the underlying cause of this failure, if it
is an error that wraps other errors. Read more
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
Returns a reference to the
Backtrace
carried by this failure, if it
carries one. Read moresourceimpl PartialEq<AllocationError> for AllocationError
impl PartialEq<AllocationError> for AllocationError
sourcefn eq(&self, other: &AllocationError) -> bool
fn eq(&self, other: &AllocationError) -> bool
impl Copy for AllocationError
impl Eq for AllocationError
impl StructuralEq for AllocationError
impl StructuralPartialEq for AllocationError
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more