Selaa lähdekoodia

dxgi: Prettify memory info.

Бранимир Караџић 4 vuotta sitten
vanhempi
sitoutus
8bf13f7f4f
1 muutettua tiedostoa jossa 13 lisäystä ja 3 poistoa
  1. 13 3
      src/dxgi.cpp

+ 13 - 3
src/dxgi.cpp

@@ -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
 							);