From 82231981dc5aa0b6bb8a97db95da29b5c0cdaf38 Mon Sep 17 00:00:00 2001 From: Wojtek Figat Date: Sat, 9 Aug 2025 23:58:47 +0200 Subject: [PATCH] Add debug tool detection for Nsight Graphics --- Source/Engine/GraphicsDevice/DirectX/DX12/GPUDeviceDX12.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Source/Engine/GraphicsDevice/DirectX/DX12/GPUDeviceDX12.cpp b/Source/Engine/GraphicsDevice/DirectX/DX12/GPUDeviceDX12.cpp index 20a26f2f5..e176d199c 100644 --- a/Source/Engine/GraphicsDevice/DirectX/DX12/GPUDeviceDX12.cpp +++ b/Source/Engine/GraphicsDevice/DirectX/DX12/GPUDeviceDX12.cpp @@ -335,10 +335,10 @@ bool GPUDeviceDX12::Init() IsDebugToolAttached = true; unknown->Release(); } - if (!IsDebugToolAttached && GetModuleHandleA("renderdoc.dll") != nullptr) - { + if (!IsDebugToolAttached && GetModuleHandleA("renderdoc.dll")) + IsDebugToolAttached = true; + if (!IsDebugToolAttached && (GetModuleHandleA("Nvda.Graphics.Interception.dll") || GetModuleHandleA("WarpViz.Injection.dll") || GetModuleHandleA("nvperf_grfx_target.dll"))) IsDebugToolAttached = true; - } #endif // Check if can use screen tearing on a swapchain