15#ifdef WITH_VULKAN_GUARDEDALLOC
17void *vk_memory_allocation(
void *user_data,
20 VkSystemAllocationScope )
22 const char *name =
static_cast<const char *
>(
const_cast<const void *
>(user_data));
29void *vk_memory_reallocation(
void *user_data,
33 VkSystemAllocationScope )
35 const char *name =
static_cast<const char *
>(
const_cast<const void *
>(user_data));
39void vk_memory_free(
void * ,
void *memory)
41 if (memory !=
nullptr) {
Read Guarded memory(de)allocation.
void * MEM_mallocN_aligned(size_t len, size_t alignment, const char *str)
void *(* MEM_reallocN_id)(void *vmemh, size_t len, const char *str)
void *(* MEM_mallocN)(size_t len, const char *str)
void MEM_freeN(void *vmemh)