pub struct PoolCreateInfo {
pub priority: MemoryPriority,
pub memory_type_index: u32,
pub algorithm: AllocationAlgorithm,
pub block_size: u64,
pub min_block_count: usize,
pub max_block_count: usize,
pub min_allocation_alignment: u64,
}Expand description
Fixed-type ordinary-memory pool; not a Vulkan ABI record.
Uses the selected placement algorithm. Priority requires captured enabled
EXT feature metadata. Use create_pool_with_chain for a retained borrowed native chain.
Fields§
§priority: MemoryPriority§memory_type_index: u32§algorithm: AllocationAlgorithmTLSF by default; linear supports explicit free-at-once and stack lifetimes.
Ring and upper-address placement require max_block_count = 1.
block_size: u64Exact native block size in bytes, or zero for VMA’s automatic sizing policy.
min_block_count: usizePreallocate this many blocks transactionally and retain this floor.
max_block_count: usizePooled-block ceiling; zero means unlimited. Automatic pools can additionally own dedicated allocations, still subject to native allocation/heap limits.
min_allocation_alignment: u64Zero means no additional constraint; otherwise a power of two.
Implementations§
Source§impl PoolCreateInfo
impl PoolCreateInfo
Sourcepub fn set_priority(self, value: MemoryPriority) -> Self
pub fn set_priority(self, value: MemoryPriority) -> Self
Set priority and return the updated record.
Sourcepub fn set_memory_type_index(self, value: u32) -> Self
pub fn set_memory_type_index(self, value: u32) -> Self
Set memory_type_index and return the updated record.
Sourcepub fn set_algorithm(self, value: AllocationAlgorithm) -> Self
pub fn set_algorithm(self, value: AllocationAlgorithm) -> Self
Set algorithm and return the updated record.
Sourcepub fn set_block_size(self, value: u64) -> Self
pub fn set_block_size(self, value: u64) -> Self
Set block_size and return the updated record.
Sourcepub fn set_min_block_count(self, value: usize) -> Self
pub fn set_min_block_count(self, value: usize) -> Self
Set min_block_count and return the updated record.
Sourcepub fn set_max_block_count(self, value: usize) -> Self
pub fn set_max_block_count(self, value: usize) -> Self
Set max_block_count and return the updated record.
Sourcepub fn set_min_allocation_alignment(self, value: u64) -> Self
pub fn set_min_allocation_alignment(self, value: u64) -> Self
Set min_allocation_alignment and return the updated record.