Lines Matching defs:alloc
32 vk_alloc(const VkAllocationCallbacks *alloc,
36 return alloc->pfnAllocation(alloc->pUserData, size, align, scope);
40 vk_zalloc(const VkAllocationCallbacks *alloc,
44 void *mem = vk_alloc(alloc, size, align, scope);
54 vk_realloc(const VkAllocationCallbacks *alloc,
58 return alloc->pfnReallocation(alloc->pUserData, ptr, size, align, scope);
62 vk_free(const VkAllocationCallbacks *alloc, void *data)
67 alloc->pfnFree(alloc->pUserData, data);
71 vk_strdup(const VkAllocationCallbacks *alloc, const char *s,
78 char *copy = vk_alloc(alloc, size, 1, scope);
89 const VkAllocationCallbacks *alloc,
93 if (alloc)
94 return vk_alloc(alloc, size, align, scope);
101 const VkAllocationCallbacks *alloc,
105 void *mem = vk_alloc2(parent_alloc, alloc, size, align, scope);
116 const VkAllocationCallbacks *alloc,
119 if (alloc)
120 vk_free(alloc, data);