From ca73392638964d35dd83c9deefd85942b1d5fe57 Mon Sep 17 00:00:00 2001 From: baldurk Date: Thu, 3 Oct 2024 14:23:27 +0100 Subject: [PATCH] Step up through composite types when looking for file scope --- renderdoc/driver/shaders/dxil/dxil_debuginfo.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/renderdoc/driver/shaders/dxil/dxil_debuginfo.cpp b/renderdoc/driver/shaders/dxil/dxil_debuginfo.cpp index b1952eefe..fd4846c28 100644 --- a/renderdoc/driver/shaders/dxil/dxil_debuginfo.cpp +++ b/renderdoc/driver/shaders/dxil/dxil_debuginfo.cpp @@ -327,6 +327,11 @@ rdcstr Program::GetDebugScopeFilePath(const DIBase *d) const scope = scope->dwarf->As()->scope; continue; } + else if(scope->dwarf->type == DIBase::CompositeType) + { + scope = scope->dwarf->As()->file; + continue; + } break; } if(d->type != DIBase::File)