Constant vk_mem_alloc::ffi::VmaAllocatorCreateFlagBits_VMA_ALLOCATOR_CREATE_FLAG_BITS_MAX_ENUM
source · [−]pub const VmaAllocatorCreateFlagBits_VMA_ALLOCATOR_CREATE_FLAG_BITS_MAX_ENUM: VmaAllocatorCreateFlagBits = 2147483647;
Expand description
Enables usage of VK_EXT_memory_priority extension in the library.
You may set this flag only if you found available and enabled this device extension,
along with VkPhysicalDeviceMemoryPriorityFeaturesEXT::memoryPriority == VK_TRUE
,
while creating Vulkan device passed as VmaAllocatorCreateInfo::device.
When this flag is used, VmaAllocationCreateInfo::priority and VmaPoolCreateInfo::priority are used to set priorities of allocated Vulkan memory. Without it, these variables are ignored.
A priority must be a floating-point value between 0 and 1, indicating the priority of the allocation relative to other memory allocations.
Larger values are higher priority. The granularity of the priorities is implementation-dependent.
It is automatically passed to every call to vkAllocateMemory
done by the library using structure VkMemoryPriorityAllocateInfoEXT
.
The value to be used for default priority is 0.5.
For more details, see the documentation of the VK_EXT_memory_priority extension.