mirror of
https://github.com/GPUOpen-LibrariesAndSDKs/VulkanMemoryAllocator.git
synced 2025-05-15 01:08:31 +00:00
Implemented VmaBlockMetadata_Linear::Clear
A step towards enabling virtual allocator with linear algorithm.
This commit is contained in:
parent
73ff8e07d1
commit
0e37526f94
1 changed files with 8 additions and 1 deletions
|
@ -10524,7 +10524,14 @@ void VmaBlockMetadata_Linear::GetAllocationInfo(VkDeviceSize offset, VmaVirtualA
|
||||||
|
|
||||||
void VmaBlockMetadata_Linear::Clear()
|
void VmaBlockMetadata_Linear::Clear()
|
||||||
{
|
{
|
||||||
VMA_ASSERT(0 && "TODO implement");
|
m_SumFreeSize = GetSize();
|
||||||
|
m_Suballocations0.clear();
|
||||||
|
m_Suballocations1.clear();
|
||||||
|
m_1stVectorIndex = 0;
|
||||||
|
m_2ndVectorMode = SECOND_VECTOR_EMPTY;
|
||||||
|
m_1stNullItemsBeginCount = 0;
|
||||||
|
m_1stNullItemsMiddleCount = 0;
|
||||||
|
m_2ndNullItemsCount = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
void VmaBlockMetadata_Linear::SetAllocationUserData(VkDeviceSize offset, void* userData)
|
void VmaBlockMetadata_Linear::SetAllocationUserData(VkDeviceSize offset, void* userData)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue