From 269fa0e0363d9cd9feecbe6346c1625bca23c239 Mon Sep 17 00:00:00 2001 From: baldurk Date: Mon, 18 Nov 2024 15:37:36 +0000 Subject: [PATCH] Add debug names for internal RT pipelins --- renderdoc/driver/d3d12/d3d12_manager.cpp | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/renderdoc/driver/d3d12/d3d12_manager.cpp b/renderdoc/driver/d3d12/d3d12_manager.cpp index e37221a3b..4b6aef2bb 100644 --- a/renderdoc/driver/d3d12/d3d12_manager.cpp +++ b/renderdoc/driver/d3d12/d3d12_manager.cpp @@ -1946,6 +1946,9 @@ void D3D12RTManager::InitRayDispatchPatchingResources() if(!SUCCEEDED(result)) RDCERR("Unable to create pipeline for dispatch patching"); + + if(m_RayPatchingData.descPatchPipe) + m_RayPatchingData.descPatchPipe->SetName(L"RENDERDOC_PatchRayDispatchCS"); } else { @@ -2057,6 +2060,9 @@ void D3D12RTManager::InitRayDispatchPatchingResources() result = m_wrappedDevice->GetReal()->CreateComputePipelineState( &pipeline, __uuidof(ID3D12PipelineState), (void **)&m_RayPatchingData.indirectPrepPipe); + if(m_RayPatchingData.indirectPrepPipe) + m_RayPatchingData.indirectPrepPipe->SetName(L"RENDERDOC_PrepareRayIndirectExecuteCS"); + if(!SUCCEEDED(result)) RDCERR("Unable to create pipeline for indirect execute patching"); } @@ -2195,6 +2201,9 @@ void D3D12RTManager::InitTLASInstanceCopyingResources() result = m_wrappedDevice->GetReal()->CreateComputePipelineState( &pipeline, __uuidof(ID3D12PipelineState), (void **)&m_TLASCopyingData.PreparePipe); + if(m_TLASCopyingData.PreparePipe) + m_TLASCopyingData.PreparePipe->SetName(L"RENDERDOC_PrepareTLASCopyIndirectExecuteCS"); + if(!SUCCEEDED(result)) RDCERR("Unable to create pipeline for TLAS instance copying"); } @@ -2220,6 +2229,9 @@ void D3D12RTManager::InitTLASInstanceCopyingResources() result = m_wrappedDevice->GetReal()->CreateComputePipelineState( &pipeline, __uuidof(ID3D12PipelineState), (void **)&m_TLASCopyingData.CopyPipe); + if(m_TLASCopyingData.CopyPipe) + m_TLASCopyingData.CopyPipe->SetName(L"RENDERDOC_CopyBLASInstanceCS"); + if(!SUCCEEDED(result)) RDCERR("Unable to create pipeline for TLAS instance copying"); } @@ -2326,6 +2338,9 @@ void D3D12RTManager::InitReplayBlasPatchingResources() result = m_wrappedDevice->GetReal()->CreateComputePipelineState( &pipeline, __uuidof(ID3D12PipelineState), (void **)&m_accStructPatchInfo.m_pipeline); + if(m_accStructPatchInfo.m_pipeline) + m_accStructPatchInfo.m_pipeline->SetName(L"RENDERDOC_PatchAccStructAddressCS"); + if(!SUCCEEDED(result)) RDCERR("Unable to create pipeline for patching the BLAS"); }