MCPcopy Create free account
hub / github.com/KhronosGroup/Vulkan-Tools / AllocateMemory

Function AllocateMemory

icd/generated/function_definitions.h:309–315  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

307 return VK_SUCCESS;
308}
309static VKAPI_ATTR VkResult VKAPI_CALL AllocateMemory(VkDevice device, const VkMemoryAllocateInfo* pAllocateInfo,
310 const VkAllocationCallbacks* pAllocator, VkDeviceMemory* pMemory) {
311 unique_lock_t lock(global_lock);
312 allocated_memory_size_map[(VkDeviceMemory)global_unique_handle] = pAllocateInfo->allocationSize;
313 *pMemory = (VkDeviceMemory)global_unique_handle++;
314 return VK_SUCCESS;
315}
316static VKAPI_ATTR void VKAPI_CALL FreeMemory(VkDevice device, VkDeviceMemory memory, const VkAllocationCallbacks* pAllocator) {
317 // Destroy object
318 UnmapMemory(device, memory);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected