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

Method GetAllocationInfo

include/vk_mem_alloc.h:8637–8643  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8635}
8636
8637void VmaBlockMetadata_Linear::GetAllocationInfo(VmaAllocHandle allocHandle, VmaVirtualAllocationInfo& outInfo)
8638{
8639 outInfo.offset = (VkDeviceSize)allocHandle - 1;
8640 VmaSuballocation& suballoc = FindSuballocation(outInfo.offset);
8641 outInfo.size = suballoc.size;
8642 outInfo.pUserData = suballoc.userData;
8643}
8644
8645void* VmaBlockMetadata_Linear::GetAllocationUserData(VmaAllocHandle allocHandle) const
8646{

Callers 6

vmaAllocateMemoryFunction · 0.80
vmaAllocateMemoryPagesFunction · 0.80

Calls 8

IsFreeMethod · 0.80
GetMemoryMethod · 0.80
GetOffsetMethod · 0.80
GetUserDataMethod · 0.80
GetMemoryTypeIndexMethod · 0.45
GetSizeMethod · 0.45
GetMappedDataMethod · 0.45
GetNameMethod · 0.45

Tested by

no test coverage detected