Function vk_mem_alloc::ffi::vmaSetAllocationName
source · [−]pub unsafe extern "C" fn vmaSetAllocationName(
allocator: VmaAllocator,
allocation: VmaAllocation,
pName: *const c_char
)
Expand description
\brief Sets pName in given allocation to new value.
pName
must be either null, or pointer to a null-terminated string. The function
makes local copy of the string and sets it as allocation’s pName
. String
passed as pName doesn’t need to be valid for whole lifetime of the allocation -
you can free it after this call. String previously pointed by allocation’s
pName
is freed from memory.