Skip to content

Commit ce48386

Browse files
Added test for JSON dump with custom pools and their names
1 parent 4ebe099 commit ce48386

3 files changed

Lines changed: 7 additions & 2 deletions

File tree

docs/html/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565
<div class="headertitle"><div class="title">D3D12 Memory Allocator </div></div>
6666
</div><!--header-->
6767
<div class="contents">
68-
<div class="textblock"><p ><b>Version 2.0.0</b> (2022-03-25)</p>
68+
<div class="textblock"><p ><b>Version 2.0.1-development</b> (2022-03-29)</p>
6969
<p >Copyright (c) 2019-2022 Advanced Micro Devices, Inc. All rights reserved. <br />
7070
License: MIT</p>
7171
<p >Documentation of all members: <a class="el" href="_d3_d12_mem_alloc_8h.html">D3D12MemAlloc.h</a></p>

include/D3D12MemAlloc.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424

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

src/Tests.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1033,6 +1033,11 @@ static void TestCustomPools(const TestContext& ctx)
10331033
D3D12_RESOURCE_STATE_GENERIC_READ,
10341034
NULL, // pOptimizedClearValue
10351035
IID_PPV_ARGS(&res)) );
1036+
1037+
// JSON dump
1038+
wchar_t* json = nullptr;
1039+
ctx.allocator->BuildStatsString(&json, TRUE);
1040+
ctx.allocator->FreeStatsString(json);
10361041
}
10371042

10381043
static void TestPoolsAndAllocationParameters(const TestContext& ctx)

0 commit comments

Comments
 (0)