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

Method GetOffset

include/vk_mem_alloc.h:11371–11383  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11369}
11370
11371VkDeviceSize VmaAllocation_T::GetOffset() const
11372{
11373 switch (m_Type)
11374 {
11375 case ALLOCATION_TYPE_BLOCK:
11376 return m_BlockAllocation.m_Block->m_pMetadata->GetAllocationOffset(m_BlockAllocation.m_AllocHandle);
11377 case ALLOCATION_TYPE_DEDICATED:
11378 return 0;
11379 default:
11380 VMA_ASSERT(0);
11381 return 0;
11382 }
11383}
11384
11385VmaPool VmaAllocation_T::GetParentPool() const
11386{

Callers 10

BindBufferMemoryMethod · 0.80
BindImageMemoryMethod · 0.80
FreeMethod · 0.80
ReallocWithinBlockMethod · 0.80
GetAllocationInfoMethod · 0.80
MapMethod · 0.80

Calls 1

GetAllocationOffsetMethod · 0.45

Tested by

no test coverage detected