mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-07-20 22:41:36 +00:00
Fix lookup of HLSL direct cbuffer variable references
This commit is contained in:
@@ -3248,7 +3248,10 @@ const RDTreeWidgetItem *ShaderViewer::getVarFromPath(const rdcstr &path, ShaderV
|
||||
|
||||
if(child->text(0) == root)
|
||||
{
|
||||
const RDTreeWidgetItem *ret = getVarFromPath(path, child, var, swizzle);
|
||||
VariableTag tag = item->tag().value<VariableTag>();
|
||||
|
||||
const RDTreeWidgetItem *ret =
|
||||
getVarFromPath(tag.absoluteRefPath + "." + path, child, var, swizzle);
|
||||
if(ret)
|
||||
return ret;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user