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

Function vma_delete_array

include/vk_mem_alloc.h:4428–4438  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4426
4427template<typename T>
4428void vma_delete_array(const VkAllocationCallbacks* pAllocationCallbacks, T* ptr, size_t count)
4429{
4430 if (ptr != VMA_NULL)
4431 {
4432 for (size_t i = count; i--; )
4433 {
4434 ptr[i].~T();
4435 }
4436 VmaFree(pAllocationCallbacks, ptr);
4437 }
4438}
4439
4440char* VmaCreateStringCopy(const VkAllocationCallbacks* allocs, const char* srcStr)
4441{

Callers 6

VmaFreeStringFunction · 0.85
~VmaPoolAllocatorMethod · 0.85
DestroyMethod · 0.85
FinishValidationMethod · 0.85

Calls 1

VmaFreeFunction · 0.85

Tested by

no test coverage detected