Added test for JSON dump with custom pools and their names

This commit is contained in:
Adam Sawicki 2022-03-29 15:09:17 +02:00
parent 4ebe099c47
commit ce48386e5c
3 changed files with 7 additions and 2 deletions

View File

@ -65,7 +65,7 @@ $(function() {
<div class="headertitle"><div class="title">D3D12 Memory Allocator </div></div>
</div><!--header-->
<div class="contents">
<div class="textblock"><p ><b>Version 2.0.0</b> (2022-03-25)</p>
<div class="textblock"><p ><b>Version 2.0.1-development</b> (2022-03-29)</p>
<p >Copyright (c) 2019-2022 Advanced Micro Devices, Inc. All rights reserved. <br />
License: MIT</p>
<p >Documentation of all members: <a class="el" href="_d3_d12_mem_alloc_8h.html">D3D12MemAlloc.h</a></p>

View File

@ -24,7 +24,7 @@
/** \mainpage D3D12 Memory Allocator
<b>Version 2.0.0</b> (2022-03-25)
<b>Version 2.0.1-development</b> (2022-03-29)
Copyright (c) 2019-2022 Advanced Micro Devices, Inc. All rights reserved. \n
License: MIT

View File

@ -1033,6 +1033,11 @@ static void TestCustomPools(const TestContext& ctx)
D3D12_RESOURCE_STATE_GENERIC_READ,
NULL, // pOptimizedClearValue
IID_PPV_ARGS(&res)) );
// JSON dump
wchar_t* json = nullptr;
ctx.allocator->BuildStatsString(&json, TRUE);
ctx.allocator->FreeStatsString(json);
}
static void TestPoolsAndAllocationParameters(const TestContext& ctx)