| 16983 | } |
| 16984 | |
| 16985 | VMA_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 | |
| 17004 | VMA_CALL_PRE VkResult VMA_CALL_POST vmaCreateDedicatedImage( |
| 17005 | VmaAllocator allocator, |