mirror of
https://github.com/GPUOpen-LibrariesAndSDKs/VulkanMemoryAllocator.git
synced 2025-05-29 07:59:17 +00:00
Add function vmaGetAllocatorInfo, structure VmaAllocatorInfo
Closes #99 Also rebuilt Doxygen documentation.
This commit is contained in:
parent
67f9dfa963
commit
a1d992f5d1
169 changed files with 16186 additions and 15740 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue