MCPcopy Create free account
hub / github.com/ErrorAtLine0/infinipaint / GetMemory

Method GetMemory

include/vk_mem_alloc.h:11076–11088  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11074}
11075
11076VkDeviceMemory VmaAllocation_T::GetMemory() const
11077{
11078 switch (m_Type)
11079 {
11080 case ALLOCATION_TYPE_BLOCK:
11081 return m_BlockAllocation.m_Block->GetDeviceMemory();
11082 case ALLOCATION_TYPE_DEDICATED:
11083 return m_DedicatedAllocation.m_hMemory;
11084 default:
11085 VMA_ASSERT(0);
11086 return VK_NULL_HANDLE;
11087 }
11088}
11089
11090void* VmaAllocation_T::GetMappedData() const
11091{

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