Skip to content

Commit 65ce7ff

Browse files
committed
Use the function name if no callstack is generated
1 parent c331152 commit 65ce7ff

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

renderdoc/driver/shaders/dxil/dxil_debug.cpp

+3
Original file line numberDiff line numberDiff line change
@@ -7806,6 +7806,9 @@ ShaderDebugTrace *Debugger::BeginDebug(uint32_t eventId, const DXBC::DXBCContain
78067806
if(!scope->functionName.empty())
78077807
callstack.push_back(scope->functionName);
78087808
}
7809+
// If there is no callstack then use the function name
7810+
if(callstack.empty())
7811+
callstack.push_back(f->name);
78097812
info.callstacks[instructionIndex] = callstack;
78107813
}
78117814
// If there is no callstack for the function then use the function name

0 commit comments

Comments
 (0)