MCPcopy Create free account
hub / github.com/GPUOpen-LibrariesAndSDKs/VulkanMemoryAllocator / GetParentPool

Method GetParentPool

include/vk_mem_alloc.h:11385–11397  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11383}
11384
11385VmaPool VmaAllocation_T::GetParentPool() const
11386{
11387 switch (m_Type)
11388 {
11389 case ALLOCATION_TYPE_BLOCK:
11390 return m_BlockAllocation.m_Block->GetParentPool();
11391 case ALLOCATION_TYPE_DEDICATED:
11392 return m_DedicatedAllocation.m_hParentPool;
11393 default:
11394 VMA_ASSERT(0);
11395 return VK_NULL_HANDLE;
11396 }
11397}
11398
11399VkDeviceMemory VmaAllocation_T::GetMemory() const
11400{

Callers 2

FreeMemoryMethod · 0.45
FreeDedicatedMemoryMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected