mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-06 10:00:40 +00:00
Disassemble empty struct definitions as {} to match dxc
This commit is contained in:
@@ -1391,9 +1391,15 @@ rdcstr Program::DisassembleTypes(int &instructionLine) const
|
||||
ret += StringFormat::Fmt("%s", t->toString().c_str());
|
||||
}
|
||||
if(typ->members.empty())
|
||||
{
|
||||
if(ret.back() == ' ')
|
||||
ret.pop_back();
|
||||
ret += "}\n";
|
||||
}
|
||||
else
|
||||
{
|
||||
ret += " }\n";
|
||||
}
|
||||
|
||||
instructionLine++;
|
||||
printedTypes = true;
|
||||
|
||||
Reference in New Issue
Block a user