mirror of
https://github.com/GPUOpen-LibrariesAndSDKs/D3D12MemoryAllocator.git
synced 2024-11-21 19:50:05 +00:00
Added internal function SaveStatsStringToFile
This commit is contained in:
parent
cf6c586e57
commit
0a79fdfbd2
Binary file not shown.
@ -120,6 +120,14 @@ static bool ValidateDataZero(const void* ptr, const UINT64 sizeInBytes)
|
||||
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");
|
||||
|
Loading…
Reference in New Issue
Block a user