mirror of
https://github.com/GPUOpen-LibrariesAndSDKs/VulkanMemoryAllocator.git
synced 2024-11-30 02:04:35 +00:00
Minor addition to VmaBlockMetadata_Linear::Validate.
This commit is contained in:
parent
2bd99038d5
commit
53d96e8c93
@ -7237,6 +7237,15 @@ bool VmaBlockMetadata_Linear::Validate() const
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(m_1stNullItemsBeginCount + m_1stNullItemsMiddleCount > suballocations1st.size())
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
if(m_2ndNullItemsCount > suballocations2nd.size())
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
VkDeviceSize sumUsedSize = 0;
|
VkDeviceSize sumUsedSize = 0;
|
||||||
const size_t suballoc1stCount = suballocations1st.size();
|
const size_t suballoc1stCount = suballocations1st.size();
|
||||||
VkDeviceSize offset = VMA_DEBUG_MARGIN;
|
VkDeviceSize offset = VMA_DEBUG_MARGIN;
|
||||||
|
Loading…
Reference in New Issue
Block a user