pub struct AllocationDescriptor<LT: Lifetime> {
pub location: MemoryLocation,
pub requirements: MemoryRequirements,
pub lifetime: LT,
pub is_dedicated: bool,
pub is_optimal: bool,
}
Expand description
The descriptor for an allocation on the allocator.
Fields§
§location: MemoryLocation
Location where the memory allocation should be stored.
requirements: MemoryRequirements
Vulkan memory requirements for an allocation.
lifetime: LT
The lifetime of an allocation. Used to pool together resources of the same lifetime.
is_dedicated: bool
If the allocation should be dedicated.
is_optimal: bool
True if the allocation is for a optimal image (regular textures). Buffers and linear images need to set this false.
Trait Implementations§
Source§impl<LT: Clone + Lifetime> Clone for AllocationDescriptor<LT>
impl<LT: Clone + Lifetime> Clone for AllocationDescriptor<LT>
Source§fn clone(&self) -> AllocationDescriptor<LT>
fn clone(&self) -> AllocationDescriptor<LT>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl<LT> Freeze for AllocationDescriptor<LT>where
LT: Freeze,
impl<LT> RefUnwindSafe for AllocationDescriptor<LT>where
LT: RefUnwindSafe,
impl<LT> Send for AllocationDescriptor<LT>where
LT: Send,
impl<LT> Sync for AllocationDescriptor<LT>where
LT: Sync,
impl<LT> Unpin for AllocationDescriptor<LT>where
LT: Unpin,
impl<LT> UnwindSafe for AllocationDescriptor<LT>where
LT: UnwindSafe,
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