mirror of
https://github.com/GPUOpen-LibrariesAndSDKs/D3D12MemoryAllocator.git
synced 2024-11-24 13:00:13 +00:00
Fixes in BlockMetadata_Linear::Validate
This commit is contained in:
parent
10bff5ec74
commit
62b61790de
@ -3815,7 +3815,7 @@ bool BlockMetadata_Linear::Validate() const
|
||||
{
|
||||
if (!IsVirtual())
|
||||
{
|
||||
D3D12MA_VALIDATE((UINT64)alloc->GetAllocHandle() == suballoc.offset);
|
||||
D3D12MA_VALIDATE(GetAllocationOffset(alloc->GetAllocHandle()) == suballoc.offset);
|
||||
D3D12MA_VALIDATE(alloc->GetSize() == suballoc.size);
|
||||
}
|
||||
sumUsedSize += suballoc.size;
|
||||
@ -3857,7 +3857,7 @@ bool BlockMetadata_Linear::Validate() const
|
||||
{
|
||||
if (!IsVirtual())
|
||||
{
|
||||
D3D12MA_VALIDATE((UINT64)alloc->GetAllocHandle() == suballoc.offset);
|
||||
D3D12MA_VALIDATE(GetAllocationOffset(alloc->GetAllocHandle()) == suballoc.offset);
|
||||
D3D12MA_VALIDATE(alloc->GetSize() == suballoc.size);
|
||||
}
|
||||
sumUsedSize += suballoc.size;
|
||||
@ -3891,7 +3891,7 @@ bool BlockMetadata_Linear::Validate() const
|
||||
{
|
||||
if (!IsVirtual())
|
||||
{
|
||||
D3D12MA_VALIDATE((UINT64)alloc->GetAllocHandle() == suballoc.offset);
|
||||
D3D12MA_VALIDATE(GetAllocationOffset(alloc->GetAllocHandle()) == suballoc.offset);
|
||||
D3D12MA_VALIDATE(alloc->GetSize() == suballoc.size);
|
||||
}
|
||||
sumUsedSize += suballoc.size;
|
||||
|
Loading…
Reference in New Issue
Block a user