Display bind array index in register name on D3D12 pipeline state

This commit is contained in:
baldurk
2021-01-15 14:14:50 +00:00
parent 1ce0958398
commit 6d1e37de3a
@@ -707,6 +707,9 @@ void D3D12PipelineStateViewer::addResourceRow(const D3D12ViewTag &view,
if(shaderInput && !shaderInput->name.empty())
regname += lit(": ") + shaderInput->name;
if(bind && bind->arraySize > 1)
regname += QFormatStr("[%1]").arg(view.res.bind - bind->bind);
if(view.type == D3D12ViewTag::OMDepth)
regname = tr("Depth");