Skip to main content

Module allocator

Module allocator 

Source
Expand description

High-performance Vulkan memory suballocator.

Suballocates small buffer and texture memory allocations from large contiguous blocks (32 MiB by default), avoiding driver allocation limits (e.g., 4096 allocations) and eliminating redundant vkAllocateMemory, vkMapMemory, and vkUnmapMemory calls.

Structs§

AllocationResult
MemoryBlock
VulkanSuballocator

Enums§

AllocationType
Distinguishes linear resources (buffers) from non-linear resources (optimal textures) to respect Vulkan bufferImageGranularity rules and prevent memory aliasing.

Constants§

DEFAULT_BLOCK_SIZE
SUBALLOCATION_THRESHOLD