mirror of
https://github.com/GPUOpen-LibrariesAndSDKs/D3D12MemoryAllocator.git
synced 2024-11-21 19:50:05 +00:00
Fixed JSON StatsString printed from VirtualBlock
Fix in VirtualBlock::BuildStatsString.
This commit is contained in:
parent
7597f717c7
commit
48c7f78f45
@ -10272,11 +10272,13 @@ void VirtualBlock::BuildStatsString(WCHAR** ppStatsString) const
|
|||||||
|
|
||||||
D3D12MA_DEBUG_GLOBAL_MUTEX_LOCK
|
D3D12MA_DEBUG_GLOBAL_MUTEX_LOCK
|
||||||
|
|
||||||
StringBuilder sb(m_Pimpl->m_AllocationCallbacks);
|
StringBuilder sb(m_Pimpl->m_AllocationCallbacks);
|
||||||
{
|
{
|
||||||
JsonWriter json(m_Pimpl->m_AllocationCallbacks, sb);
|
JsonWriter json(m_Pimpl->m_AllocationCallbacks, sb);
|
||||||
D3D12MA_HEAVY_ASSERT(m_Pimpl->m_Metadata->Validate());
|
D3D12MA_HEAVY_ASSERT(m_Pimpl->m_Metadata->Validate());
|
||||||
|
json.BeginObject();
|
||||||
m_Pimpl->m_Metadata->WriteAllocationInfoToJson(json);
|
m_Pimpl->m_Metadata->WriteAllocationInfoToJson(json);
|
||||||
|
json.EndObject();
|
||||||
} // Scope for JsonWriter
|
} // Scope for JsonWriter
|
||||||
|
|
||||||
const size_t length = sb.GetLength();
|
const size_t length = sb.GetLength();
|
||||||
|
Loading…
Reference in New Issue
Block a user