Add IsDebugToolAttached to GPUDevice for detecting gpu debugger tools attached and auto-enable GPU profiler in that case

This commit is contained in:
Wojtek Figat
2024-06-03 09:24:27 +02:00
parent bd819b1f5f
commit 1cbcddf410
7 changed files with 90 additions and 27 deletions

View File

@@ -321,10 +321,11 @@ GPUDevice::GPUDevice(RendererType type, ShaderProfile profile)
, _res(New<PrivateData>())
, _resources(1024)
, TotalGraphicsMemory(0)
, IsDebugToolAttached(false)
, QuadShader(nullptr)
, CurrentTask(nullptr)
{
ASSERT(_rendererType != RendererType::Unknown);
ASSERT_LOW_LAYER(_rendererType != RendererType::Unknown);
}
GPUDevice::~GPUDevice()