Add debug tool detection for Nsight Graphics

This commit is contained in:
Wojtek Figat
2025-08-09 23:58:47 +02:00
parent 1915e1e7f4
commit 82231981dc

View File

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