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

Function vmaCreateImage

include/vk_mem_alloc.h:16985–17002  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16983}
16984
16985VMA_CALL_PRE VkResult VMA_CALL_POST vmaCreateImage(
16986 VmaAllocator allocator,
16987 const VkImageCreateInfo* pImageCreateInfo,
16988 const VmaAllocationCreateInfo* pAllocationCreateInfo,
16989 VkImage* pImage,
16990 VmaAllocation* pAllocation,
16991 VmaAllocationInfo* pAllocationInfo)
16992{
16993 VMA_ASSERT(allocator && pImageCreateInfo && pAllocationCreateInfo && pImage && pAllocation);
16994 VMA_ASSERT((pImageCreateInfo->flags & VK_IMAGE_CREATE_DISJOINT_BIT_COPY) == 0 &&
16995 "vmaCreateImage() doesn't support disjoint multi-planar images. Please allocate memory for the planes using vmaAllocateMemory() and bind them using vmaBindImageMemory2().");
16996 VMA_DEBUG_LOG("vmaCreateImage");
16997 VMA_DEBUG_GLOBAL_MUTEX_LOCK;
16998
16999 return allocator->CreateImage(pImageCreateInfo, pAllocationCreateInfo,
17000 VMA_NULL, // pMemoryAllocateNext
17001 pImage, pAllocation, pAllocationInfo);
17002}
17003
17004VMA_CALL_PRE VkResult VMA_CALL_POST vmaCreateDedicatedImage(
17005 VmaAllocator allocator,

Callers 10

CreateTextureFunction · 0.85
CreateSwapchainFunction · 0.85
InitMethod · 0.85
MainTestFunction · 0.85
CreateImageMethod · 0.85
CreateAllocationFunction · 0.85
TestJsonFunction · 0.85
TestInvalidAllocationsFunction · 0.85
TestPool_BenchmarkFunction · 0.85
TestAllocationAliasingFunction · 0.85

Calls 1

CreateImageMethod · 0.45

Tested by 8

InitMethod · 0.68
MainTestFunction · 0.68
CreateImageMethod · 0.68
CreateAllocationFunction · 0.68
TestJsonFunction · 0.68
TestInvalidAllocationsFunction · 0.68
TestPool_BenchmarkFunction · 0.68
TestAllocationAliasingFunction · 0.68