struct VmaAllocation_T
Defined at line 6076 of file ../../src/ui/lib/escher/third_party/VulkanMemoryAllocator/vk_mem_alloc.h
Public Methods
void VmaAllocation_T (uint32_t currentFrameIndex, bool userDataString)
This struct is allocated using VmaPoolAllocator.
Defined at line 6098 of file ../../src/ui/lib/escher/third_party/VulkanMemoryAllocator/vk_mem_alloc.h
void ~VmaAllocation_T ()
Defined at line 6115 of file ../../src/ui/lib/escher/third_party/VulkanMemoryAllocator/vk_mem_alloc.h
void InitBlockAllocation (VmaDeviceMemoryBlock * block, VkDeviceSize offset, VkDeviceSize alignment, VkDeviceSize size, uint32_t memoryTypeIndex, VmaSuballocationType suballocationType, bool mapped, bool canBecomeLost)
Defined at line 6123 of file ../../src/ui/lib/escher/third_party/VulkanMemoryAllocator/vk_mem_alloc.h
void InitLost ()
Defined at line 6146 of file ../../src/ui/lib/escher/third_party/VulkanMemoryAllocator/vk_mem_alloc.h
void InitDedicatedAllocation (uint32_t memoryTypeIndex, VkDeviceMemory hMemory, VmaSuballocationType suballocationType, void * pMappedData, VkDeviceSize size)
pMappedData not null means allocation is created with MAPPED flag.
Defined at line 6165 of file ../../src/ui/lib/escher/third_party/VulkanMemoryAllocator/vk_mem_alloc.h
ALLOCATION_TYPE GetType ()
Defined at line 6184 of file ../../src/ui/lib/escher/third_party/VulkanMemoryAllocator/vk_mem_alloc.h
VkDeviceSize GetAlignment ()
Defined at line 6185 of file ../../src/ui/lib/escher/third_party/VulkanMemoryAllocator/vk_mem_alloc.h
VkDeviceSize GetSize ()
Defined at line 6186 of file ../../src/ui/lib/escher/third_party/VulkanMemoryAllocator/vk_mem_alloc.h
bool IsUserDataString ()
Defined at line 6187 of file ../../src/ui/lib/escher/third_party/VulkanMemoryAllocator/vk_mem_alloc.h
void * GetUserData ()
Defined at line 6188 of file ../../src/ui/lib/escher/third_party/VulkanMemoryAllocator/vk_mem_alloc.h
VmaSuballocationType GetSuballocationType ()
Defined at line 6190 of file ../../src/ui/lib/escher/third_party/VulkanMemoryAllocator/vk_mem_alloc.h
VmaDeviceMemoryBlock * GetBlock ()
Defined at line 6192 of file ../../src/ui/lib/escher/third_party/VulkanMemoryAllocator/vk_mem_alloc.h
uint32_t GetMemoryTypeIndex ()
Defined at line 6199 of file ../../src/ui/lib/escher/third_party/VulkanMemoryAllocator/vk_mem_alloc.h
bool IsPersistentMap ()
Defined at line 6200 of file ../../src/ui/lib/escher/third_party/VulkanMemoryAllocator/vk_mem_alloc.h
uint32_t GetLastUseFrameIndex ()
Defined at line 6204 of file ../../src/ui/lib/escher/third_party/VulkanMemoryAllocator/vk_mem_alloc.h
bool CompareExchangeLastUseFrameIndex (uint32_t & expected, uint32_t desired)
Defined at line 6208 of file ../../src/ui/lib/escher/third_party/VulkanMemoryAllocator/vk_mem_alloc.h
void DedicatedAllocCalcStatsInfo (VmaStatInfo & outInfo)
Defined at line 6222 of file ../../src/ui/lib/escher/third_party/VulkanMemoryAllocator/vk_mem_alloc.h
uint32_t GetCreationFrameIndex ()
Defined at line 6241 of file ../../src/ui/lib/escher/third_party/VulkanMemoryAllocator/vk_mem_alloc.h
uint32_t GetBufferImageUsage ()
Defined at line 6242 of file ../../src/ui/lib/escher/third_party/VulkanMemoryAllocator/vk_mem_alloc.h
void InitBufferImageUsage (uint32_t bufferImageUsage)
Defined at line 6244 of file ../../src/ui/lib/escher/third_party/VulkanMemoryAllocator/vk_mem_alloc.h
void ChangeBlockAllocation (VmaAllocator hAllocator, VmaDeviceMemoryBlock * block, VkDeviceSize offset)
Defined at line 8572 of file ../../src/ui/lib/escher/third_party/VulkanMemoryAllocator/vk_mem_alloc.h
void ChangeOffset (VkDeviceSize newOffset)
Defined at line 8594 of file ../../src/ui/lib/escher/third_party/VulkanMemoryAllocator/vk_mem_alloc.h
void SetUserData (VmaAllocator hAllocator, void * pUserData)
/////////////////////////////////////////////////////////////////////////////
Defined at line 8553 of file ../../src/ui/lib/escher/third_party/VulkanMemoryAllocator/vk_mem_alloc.h
VkDeviceSize GetOffset ()
Defined at line 8600 of file ../../src/ui/lib/escher/third_party/VulkanMemoryAllocator/vk_mem_alloc.h
VkDeviceMemory GetMemory ()
Defined at line 8614 of file ../../src/ui/lib/escher/third_party/VulkanMemoryAllocator/vk_mem_alloc.h
void * GetMappedData ()
Defined at line 8628 of file ../../src/ui/lib/escher/third_party/VulkanMemoryAllocator/vk_mem_alloc.h
bool CanBecomeLost ()
Defined at line 8653 of file ../../src/ui/lib/escher/third_party/VulkanMemoryAllocator/vk_mem_alloc.h
bool MakeLost (uint32_t currentFrameIndex, uint32_t frameInUseCount)
- If hAllocation.LastUseFrameIndex + frameInUseCount
<
allocator.CurrentFrameIndex,
makes it lost by setting LastUseFrameIndex = VMA_FRAME_INDEX_LOST and returns true.
- Else, returns false.
If hAllocation is already lost, assert - you should not call it then.
If hAllocation was not created with CAN_BECOME_LOST_BIT, assert.
Defined at line 8667 of file ../../src/ui/lib/escher/third_party/VulkanMemoryAllocator/vk_mem_alloc.h
void BlockAllocMap ()
Defined at line 8756 of file ../../src/ui/lib/escher/third_party/VulkanMemoryAllocator/vk_mem_alloc.h
void BlockAllocUnmap ()
Defined at line 8770 of file ../../src/ui/lib/escher/third_party/VulkanMemoryAllocator/vk_mem_alloc.h
VkResult DedicatedAllocMap (VmaAllocator hAllocator, void ** ppData)
Defined at line 8784 of file ../../src/ui/lib/escher/third_party/VulkanMemoryAllocator/vk_mem_alloc.h
void DedicatedAllocUnmap (VmaAllocator hAllocator)
Defined at line 8821 of file ../../src/ui/lib/escher/third_party/VulkanMemoryAllocator/vk_mem_alloc.h
void PrintParameters (class VmaJsonWriter & json)
Defined at line 8711 of file ../../src/ui/lib/escher/third_party/VulkanMemoryAllocator/vk_mem_alloc.h
Enumerations
enum ALLOCATION_TYPE
| Name | Value |
|---|---|
| ALLOCATION_TYPE_NONE | 0 |
| ALLOCATION_TYPE_BLOCK | 1 |
| ALLOCATION_TYPE_DEDICATED | 2 |
Defined at line 6087 of file ../../src/ui/lib/escher/third_party/VulkanMemoryAllocator/vk_mem_alloc.h