DXIL Disassembly added variable for name of fake input/output structs

This commit is contained in:
Jake Turner
2024-06-18 10:32:48 +01:00
parent f74a119e05
commit b6c2824e0f
2 changed files with 5 additions and 2 deletions
@@ -49,6 +49,9 @@ struct ThreadState;
namespace DXIL
{
static const rdcstr DXIL_FAKE_OUTPUT_STRUCT_NAME("_OUT");
static const rdcstr DXIL_FAKE_INPUT_STRUCT_NAME("_IN");
struct BumpAllocator
{
BumpAllocator(size_t totalSize);
@@ -3053,7 +3053,7 @@ void Program::MakeRDDisassemblyString(const DXBC::Reflection *reflection)
else
componentStr = GetArgId(inst, 3);
lineStr += "<IN>." + name + rowStr + "." + componentStr;
lineStr += DXIL_FAKE_INPUT_STRUCT_NAME + "." + name + rowStr + "." + componentStr;
break;
}
case DXOp::StoreOutput:
@@ -3091,7 +3091,7 @@ void Program::MakeRDDisassemblyString(const DXBC::Reflection *reflection)
else
componentStr = GetArgId(inst, 3);
lineStr += "<OUT>." + name + rowStr + "." + componentStr;
lineStr += DXIL_FAKE_OUTPUT_STRUCT_NAME + "." + name + rowStr + "." + componentStr;
lineStr += " = " + GetArgId(inst, 4);
break;
}