pub enum AllocationType {
Linear,
Optimal,
}Expand description
Distinguishes linear resources (buffers) from non-linear resources (optimal textures) to respect Vulkan bufferImageGranularity rules and prevent memory aliasing.
Variants§
Trait Implementations§
Source§impl Clone for AllocationType
impl Clone for AllocationType
impl Copy for AllocationType
Source§impl Debug for AllocationType
impl Debug for AllocationType
impl Eq for AllocationType
Source§impl PartialEq for AllocationType
impl PartialEq for AllocationType
impl StructuralPartialEq for AllocationType
Auto Trait Implementations§
impl Freeze for AllocationType
impl RefUnwindSafe for AllocationType
impl Send for AllocationType
impl Sync for AllocationType
impl Unpin for AllocationType
impl UnsafeUnpin for AllocationType
impl UnwindSafe for AllocationType
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more