dxgi: Prettify memory info.

This commit is contained in:
Бранимир Караџић 2021-10-02 16:21:30 -07:00
parent 03fbf9d42b
commit 8bf13f7f4f

View File

@ -206,9 +206,19 @@ namespace bgfx
, desc.SubSysId
, desc.Revision
);
BX_TRACE("\tMemory: %tu (video), %tu (system), %tu (shared)"
, desc.DedicatedVideoMemory
, desc.DedicatedSystemMemory
char dedicatedVideo[16];
bx::prettify(dedicatedVideo, BX_COUNTOF(dedicatedVideo), desc.DedicatedVideoMemory);
char dedicatedSystem[16];
bx::prettify(dedicatedSystem, BX_COUNTOF(dedicatedSystem), desc.DedicatedSystemMemory);
char sharedSystem[16];
bx::prettify(sharedSystem, BX_COUNTOF(sharedSystem), desc.SharedSystemMemory);
BX_TRACE("\tMemory: %s (video), %s (system), %s (shared)"
, dedicatedVideo
, dedicatedSystem
, desc.SharedSystemMemory
);