Minor addition to VmaBlockMetadata_Linear::Validate.
This commit is contained in:
parent
2bd99038d5
commit
53d96e8c93
1 changed files with 9 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue