Struct vk_alloc::AllocationDescriptor [−][src]
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
Auto Trait Implementations
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
Mutably borrows from an owned value. Read more