From c80ca4d9a1e129ed8450d13c401ee8b47b1a1084 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20L=C3=BCbe=C3=9F?= Date: Mon, 28 Feb 2022 12:13:44 +0100 Subject: [PATCH] Cleaned up DX11 report --- .../src/Platform/DX11/Dx11Platform.bf | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/GlitchyEngine/src/Platform/DX11/Dx11Platform.bf b/GlitchyEngine/src/Platform/DX11/Dx11Platform.bf index f60c241..af40fc4 100644 --- a/GlitchyEngine/src/Platform/DX11/Dx11Platform.bf +++ b/GlitchyEngine/src/Platform/DX11/Dx11Platform.bf @@ -1,12 +1,13 @@ #if GE_GRAPHICS_DX11 #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 using DirectX.Common; using DirectX.D3D11; using DirectX.D3D11.SDKLayers; +using System.Diagnostics; namespace GlitchyEngine.Platform.DX11 { @@ -83,7 +84,21 @@ namespace GlitchyEngine.Platform.DX11 NativeDevice.Release(); NativeContext.Release(); #if DEBUG - DebugDevice.ReportLiveDeviceObjects(.Detail); + Debug.WriteLine(""" + + ------------------------- + Live DX Objects Report: + + """); + + DebugDevice.ReportLiveDeviceObjects(.Detail | .IgnoreInternal); + + Debug.WriteLine(""" + + ------------------------- + + """); + DebugDevice.Release(); #endif }