mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-09-22 21:55:52 +00:00
Fix index used for constant buffer slots in D3D11 pipeline viewer
This commit is contained in:
@@ -947,13 +947,18 @@ void D3D11PipelineStateViewer::setShaderState(const D3D11Pipe::Shader &stage, QL
|
||||
|
||||
const ConstantBlock *shaderCBuf = NULL;
|
||||
|
||||
int cbufIdx = -1;
|
||||
|
||||
if(shaderDetails)
|
||||
{
|
||||
for(const ConstantBlock &bind : shaderDetails->ConstantBlocks)
|
||||
for(int cb = 0; cb < shaderDetails->ConstantBlocks.count; cb++)
|
||||
{
|
||||
const ConstantBlock &bind = shaderDetails->ConstantBlocks[cb];
|
||||
|
||||
if(bind.bindPoint == i)
|
||||
{
|
||||
shaderCBuf = &bind;
|
||||
cbufIdx = cb;
|
||||
break;
|
||||
}
|
||||
}
|
||||
@@ -1002,7 +1007,7 @@ void D3D11PipelineStateViewer::setShaderState(const D3D11Pipe::Shader &stage, QL
|
||||
|
||||
RDTreeWidgetItem *node = new RDTreeWidgetItem({slotname, name, vecrange, sizestr, ""});
|
||||
|
||||
node->setTag(QVariant::fromValue(i));
|
||||
node->setTag(QVariant::fromValue(cbufIdx));
|
||||
|
||||
if(!filledSlot)
|
||||
setEmptyRow(node);
|
||||
|
||||
Reference in New Issue
Block a user