Added dummy implementation of VmaBlockMetadata_Buddy methods related to lost allocations. Lost allocations are not supported in buddy algorithm for now.

This commit is contained in:
Adam Sawicki 2018-09-21 13:26:12 +02:00
parent 0dbbaad040
commit a79d2746f1

View file

@ -9366,12 +9366,20 @@ bool VmaBlockMetadata_Buddy::MakeRequestedAllocationsLost(
uint32_t frameInUseCount, uint32_t frameInUseCount,
VmaAllocationRequest* pAllocationRequest) VmaAllocationRequest* pAllocationRequest)
{ {
return false; // TODO /*
Lost allocations are not supported in buddy allocator at the moment.
Support might be added in the future.
*/
return pAllocationRequest->itemsToMakeLostCount == 0;
} }
uint32_t VmaBlockMetadata_Buddy::MakeAllocationsLost(uint32_t currentFrameIndex, uint32_t frameInUseCount) uint32_t VmaBlockMetadata_Buddy::MakeAllocationsLost(uint32_t currentFrameIndex, uint32_t frameInUseCount)
{ {
return 0; // TODO /*
Lost allocations are not supported in buddy allocator at the moment.
Support might be added in the future.
*/
return 0;
} }
void VmaBlockMetadata_Buddy::Alloc( void VmaBlockMetadata_Buddy::Alloc(