Enum vulkano::memory::allocator::suballocator::AllocationType
source · [−]pub enum AllocationType {
Unknown,
Linear,
NonLinear,
}
Expand description
Tells the suballocator what type of resource will be bound to the allocation, so that it can optimize memory usage while still respecting the buffer-image granularity.
Variants
Unknown
The type of resource is unknown, it might be either linear or non-linear. What this means is that allocations created with this type must always be aligned to the buffer-image granularity.
Linear
The resource is linear, e.g. buffers, linear images. A linear allocation following another linear allocation never needs to be aligned to the buffer-image granularity.
NonLinear
The resource is non-linear, e.g. optimal images. A non-linear allocation following another non-linear allocation never needs to be aligned to the buffer-image granularity.
Trait Implementations
sourceimpl Clone for AllocationType
impl Clone for AllocationType
sourcefn clone(&self) -> AllocationType
fn clone(&self) -> AllocationType
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 AllocationType
impl Debug for AllocationType
sourceimpl From<ImageTiling> for AllocationType
impl From<ImageTiling> for AllocationType
sourcefn from(tiling: ImageTiling) -> Self
fn from(tiling: ImageTiling) -> Self
Converts to this type from the input type.
sourceimpl Hash for AllocationType
impl Hash for AllocationType
sourceimpl PartialEq<AllocationType> for AllocationType
impl PartialEq<AllocationType> for AllocationType
sourcefn eq(&self, other: &AllocationType) -> bool
fn eq(&self, other: &AllocationType) -> bool
impl Copy for AllocationType
impl Eq for AllocationType
impl StructuralEq for AllocationType
impl StructuralPartialEq for AllocationType
Auto Trait Implementations
impl RefUnwindSafe for AllocationType
impl Send for AllocationType
impl Sync for AllocationType
impl Unpin for AllocationType
impl UnwindSafe for AllocationType
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