Cleaned up DX11 report

This commit is contained in:
Simon Lübeß
2022-02-28 12:13:44 +01:00
parent 92fd8bb572
commit c80ca4d9a1
@@ -1,12 +1,13 @@
#if GE_GRAPHICS_DX11 #if GE_GRAPHICS_DX11
#if !BF_PLATFORM_WINDOWS #if !BF_PLATFORM_WINDOWS
#error DirectX 11 (GE_GRAPHICS_DX11) can on be used on Windows. #error DirectX 11 (GE_GRAPHICS_DX11) can only be used on Windows.
#endif #endif
using DirectX.Common; using DirectX.Common;
using DirectX.D3D11; using DirectX.D3D11;
using DirectX.D3D11.SDKLayers; using DirectX.D3D11.SDKLayers;
using System.Diagnostics;
namespace GlitchyEngine.Platform.DX11 namespace GlitchyEngine.Platform.DX11
{ {
@@ -83,7 +84,21 @@ namespace GlitchyEngine.Platform.DX11
NativeDevice.Release(); NativeDevice.Release();
NativeContext.Release(); NativeContext.Release();
#if DEBUG #if DEBUG
DebugDevice.ReportLiveDeviceObjects(.Detail); Debug.WriteLine("""
-------------------------
Live DX Objects Report:
""");
DebugDevice.ReportLiveDeviceObjects(.Detail | .IgnoreInternal);
Debug.WriteLine("""
-------------------------
""");
DebugDevice.Release(); DebugDevice.Release();
#endif #endif
} }