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

Method CreateImage

src/Tests.cpp:787–796  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

785 TEST(res == VK_SUCCESS);
786}
787void AllocInfo::CreateImage(
788 const VkImageCreateInfo& imageCreateInfo,
789 const VmaAllocationCreateInfo& allocCreateInfo,
790 VkImageLayout layout)
791{
792 m_ImageInfo = imageCreateInfo;
793 m_ImageLayout = layout;
794 VkResult res = vmaCreateImage(g_hAllocator, &imageCreateInfo, &allocCreateInfo, &m_Image, &m_Allocation, nullptr);
795 TEST(res == VK_SUCCESS);
796}
797
798void AllocInfo::Destroy()
799{

Callers 1

CreateImageFunction · 0.45

Calls 2

vmaCreateImageFunction · 0.85
TESTEnum · 0.85

Tested by

no test coverage detected