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: MemoryLocationLocation where the memory allocation should be stored.
requirements: MemoryRequirementsVulkan memory requirements for an allocation.
lifetime: LTThe lifetime of an allocation. Used to pool together resources of the same lifetime.
is_dedicated: boolIf the allocation should be dedicated.
is_optimal: boolTrue 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