Fix tests and documentation to use vmaBind* instead of vkBind* functions after defragmentation

This commit is contained in:
Adam Sawicki 2019-07-02 12:34:26 +02:00
parent 87cea36670
commit af88c1bde1
4 changed files with 156 additions and 155 deletions

View file

@ -1188,7 +1188,7 @@ static void RecreateAllocationResource(AllocInfo& allocation)
vkGetBufferMemoryRequirements(g_hDevice, allocation.m_Buffer, &vkMemReq);
TEST(vkMemReq.size >= allocation.m_BufferInfo.size);
res = vkBindBufferMemory(g_hDevice, allocation.m_Buffer, allocInfo.deviceMemory, allocInfo.offset);
res = vmaBindBufferMemory(g_hAllocator, allocation.m_Allocation, allocation.m_Buffer);
TEST(res == VK_SUCCESS);
}
else
@ -1202,7 +1202,7 @@ static void RecreateAllocationResource(AllocInfo& allocation)
VkMemoryRequirements vkMemReq;
vkGetImageMemoryRequirements(g_hDevice, allocation.m_Image, &vkMemReq);
res = vkBindImageMemory(g_hDevice, allocation.m_Image, allocInfo.deviceMemory, allocInfo.offset);
res = vmaBindImageMemory(g_hAllocator, allocation.m_Allocation, allocation.m_Image);
TEST(res == VK_SUCCESS);
}
}