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

Function CreateImage

icd/generated/function_definitions.h:518–524  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

516 buffer_map[device].erase(buffer);
517}
518static VKAPI_ATTR VkResult VKAPI_CALL CreateImage(VkDevice device, const VkImageCreateInfo* pCreateInfo,
519 const VkAllocationCallbacks* pAllocator, VkImage* pImage) {
520 unique_lock_t lock(global_lock);
521 *pImage = (VkImage)global_unique_handle++;
522 image_memory_size_map[device][*pImage] = GetImageSizeFromCreateInfo(pCreateInfo);
523 return VK_SUCCESS;
524}
525static VKAPI_ATTR void VKAPI_CALL DestroyImage(VkDevice device, VkImage image, const VkAllocationCallbacks* pAllocator) {
526 unique_lock_t lock(global_lock);
527 image_memory_size_map[device].erase(image);

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected