Added internal function SaveStatsStringToFile
diff --git a/bin/D3D12Sample_Release_vs2019.exe b/bin/D3D12Sample_Release_vs2019.exe
index df30745..6210f07 100644
--- a/bin/D3D12Sample_Release_vs2019.exe
+++ b/bin/D3D12Sample_Release_vs2019.exe
Binary files differ
diff --git a/src/Tests.cpp b/src/Tests.cpp
index a6e5d56..69d4261 100644
--- a/src/Tests.cpp
+++ b/src/Tests.cpp
@@ -120,6 +120,14 @@
return true;
}
+static void SaveStatsStringToFile(const TestContext& ctx, const wchar_t* dstFilePath)
+{
+ WCHAR* s = nullptr;
+ ctx.allocator->BuildStatsString(&s, TRUE);
+ SaveFile(dstFilePath, s, wcslen(s) * sizeof(WCHAR));
+ ctx.allocator->FreeStatsString(s);
+}
+
static void TestVirtualBlocks(const TestContext& ctx)
{
wprintf(L"Test virtual blocks\n");