mirror of
https://github.com/GPUOpen-LibrariesAndSDKs/VulkanMemoryAllocator.git
synced 2025-06-06 15:30:47 +00:00
Fix tests and documentation to use vmaBind* instead of vkBind* functions after defragmentation
This commit is contained in:
parent
87cea36670
commit
af88c1bde1
4 changed files with 156 additions and 155 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue