DXIL Disassembly show the interpolation mode on Input/Output variables

This commit is contained in:
Jake Turner
2024-11-27 13:22:59 +00:00
parent a39c4cf1db
commit 2c42c1dac2
@@ -2917,6 +2917,11 @@ void Program::MakeRDDisassemblyString(const DXBC::Reflection *reflection)
m_Disassembly += " ";
EntryPointInterface::Signature &sig = entryPoint.inputs[j];
if(sig.interpolation != D3D_INTERPOLATION_MODE::D3D_INTERPOLATION_UNDEFINED &&
sig.interpolation != D3D_INTERPOLATION_MODE::D3D_INTERPOLATION_LINEAR)
m_Disassembly += ToStr((DXBC::InterpolationMode)sig.interpolation) + " ";
ComponentType compType = sig.type;
m_Disassembly += ProcessNormCompType(compType);
@@ -2986,6 +2991,10 @@ void Program::MakeRDDisassemblyString(const DXBC::Reflection *reflection)
m_Disassembly += " ";
if(sig.interpolation != D3D_INTERPOLATION_MODE::D3D_INTERPOLATION_UNDEFINED &&
sig.interpolation != D3D_INTERPOLATION_MODE::D3D_INTERPOLATION_LINEAR)
m_Disassembly += ToStr((DXBC::InterpolationMode)sig.interpolation) + " ";
ComponentType compType = sig.type;
m_Disassembly += ProcessNormCompType(compType);