Add function vmaGetAllocatorInfo, structure VmaAllocatorInfo

Closes #99

Also rebuilt Doxygen documentation.
This commit is contained in:
Adam Sawicki 2020-03-02 15:32:10 +01:00
parent 67f9dfa963
commit a1d992f5d1
169 changed files with 16186 additions and 15740 deletions

View file

@ -2626,10 +2626,23 @@ static void TestMemoryRequirements()
}
static void TestGetAllocatorInfo()
{
wprintf(L"Test vnaGetAllocatorInfo\n");
VmaAllocatorInfo allocInfo = {};
vmaGetAllocatorInfo(g_hAllocator, &allocInfo);
TEST(allocInfo.instance == g_hVulkanInstance);
TEST(allocInfo.physicalDevice == g_hPhysicalDevice);
TEST(allocInfo.device == g_hDevice);
}
static void TestBasics()
{
VkResult res;
TestGetAllocatorInfo();
TestMemoryRequirements();
// Lost allocation