Describes parameter of created VmaPool. More...
#include <vk_mem_alloc.h>
Public Attributes | |
uint32_t | memoryTypeIndex |
Vulkan memory type index to allocate this pool from. More... | |
VmaPoolCreateFlags | flags |
Use combination of VmaPoolCreateFlagBits. More... | |
VkDeviceSize | blockSize |
Size of a single VkDeviceMemory block to be allocated as part of this pool, in bytes. More... | |
size_t | minBlockCount |
Minimum number of blocks to be always allocated in this pool, even if they stay empty. More... | |
size_t | maxBlockCount |
Maximum number of blocks that can be allocated in this pool. More... | |
uint32_t | frameInUseCount |
Maximum number of additional frames that are in use at the same time as current frame. More... | |
Describes parameter of created VmaPool.
Definition at line 2376 of file vk_mem_alloc.h.
VkDeviceSize VmaPoolCreateInfo::blockSize |
Size of a single VkDeviceMemory
block to be allocated as part of this pool, in bytes.
Optional.
Specify nonzero to set explicit, constant size of memory blocks used by this pool.
Leave 0 to use default and let the library manage block sizes automatically. Sizes of particular blocks may vary.
Definition at line 2391 of file vk_mem_alloc.h.
VmaPoolCreateFlags VmaPoolCreateInfo::flags |
Use combination of VmaPoolCreateFlagBits.
Definition at line 2382 of file vk_mem_alloc.h.
uint32_t VmaPoolCreateInfo::frameInUseCount |
Maximum number of additional frames that are in use at the same time as current frame.
This value is used only when you make allocations with VMA_ALLOCATION_CREATE_CAN_BECOME_LOST_BIT flag. Such allocation cannot become lost if allocation.lastUseFrameIndex >= allocator.currentFrameIndex - frameInUseCount.
For example, if you double-buffer your command buffers, so resources used for rendering in previous frame may still be in use by the GPU at the moment you allocate resources needed for the current frame, set this value to 1.
If you want to allow any allocations other than used in the current frame to become lost, set this value to 0.
Definition at line 2418 of file vk_mem_alloc.h.
size_t VmaPoolCreateInfo::maxBlockCount |
Maximum number of blocks that can be allocated in this pool.
Optional.
Set to 0 to use default, which is SIZE_MAX
, which means no limit.
Set to same value as VmaPoolCreateInfo::minBlockCount to have fixed amount of memory allocated throughout whole lifetime of this pool.
Definition at line 2404 of file vk_mem_alloc.h.
uint32_t VmaPoolCreateInfo::memoryTypeIndex |
Vulkan memory type index to allocate this pool from.
Definition at line 2379 of file vk_mem_alloc.h.
size_t VmaPoolCreateInfo::minBlockCount |
Minimum number of blocks to be always allocated in this pool, even if they stay empty.
Set to 0 to have no preallocated blocks and allow the pool be completely empty.
Definition at line 2396 of file vk_mem_alloc.h.