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

Method SetName

include/vk_mem_alloc.h:11328–11336  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11326}
11327
11328void VmaAllocation_T::SetName(VmaAllocator hAllocator, const char* pName)
11329{
11330 VMA_ASSERT(pName == VMA_NULL || pName != m_pName);
11331
11332 FreeName(hAllocator);
11333
11334 if (pName != VMA_NULL)
11335 m_pName = VmaCreateStringCopy(hAllocator->GetAllocationCallbacks(), pName);
11336}
11337
11338uint8_t VmaAllocation_T::SwapBlockAllocation(VmaAllocator hAllocator, VmaAllocation allocation)
11339{

Callers 3

vmaSetAllocationNameFunction · 0.80

Calls 4

VmaCreateStringCopyFunction · 0.85
VmaFreeStringFunction · 0.85
GetAllocatorMethod · 0.80

Tested by

no test coverage detected