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

Method GetMemory

include/vk_mem_alloc.h:11399–11411  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11397}
11398
11399VkDeviceMemory VmaAllocation_T::GetMemory() const
11400{
11401 switch (m_Type)
11402 {
11403 case ALLOCATION_TYPE_BLOCK:
11404 return m_BlockAllocation.m_Block->GetDeviceMemory();
11405 case ALLOCATION_TYPE_DEDICATED:
11406 return m_DedicatedAllocation.m_hMemory;
11407 default:
11408 VMA_ASSERT(0);
11409 return VK_NULL_HANDLE;
11410 }
11411}
11412
11413void* VmaAllocation_T::GetMappedData() const
11414{

Callers 6

GetAllocationInfoMethod · 0.80
BindBufferMemoryMethod · 0.80
BindImageMemoryMethod · 0.80
FreeDedicatedMemoryMethod · 0.80

Calls 1

GetDeviceMemoryMethod · 0.80

Tested by

no test coverage detected