vk::mem · Enums · D1
2 public declarations with native signatures and source-owned contracts.
Envk::mem::DefragmentationAlgorithm
Contract
Existing-block relocation policy, derived from the pinned VMA algorithms.
Variants
Fast
FastConsolidate sparse blocks into fuller compatible blocks, without same-block moves.
Balanced
BalancedAlso compact within a block when average allocation/free sizes justify the copy.
Full
FullAlso try every eligible source at a strictly lower offset within its own block.
Extensive
ExtensiveEvacuate blocks, pack compatible resource classes, then compact remaining gaps.
Requires a persistent DefragmentationContext; no native allocation/copy is implicit.
Methods and associated items
clone
fmt
default
eq
self and other values to be equal, and is used by ==.Envk::mem::DefragmentationResource
Contract
Allocator-recorded primary resource, or raw storage, associated with a move.
Variants
Buffer
Buffer(Buffer)Image
Image(Image)Unassociated
UnassociatedRaw storage without an allocator-recorded resource. External bindings and all resources using this storage remain the caller’s responsibility.
Methods and associated items
clone
fmt
eq
self and other values to be equal, and is used by ==.