Hide invalid shader resources

Fixed the problem that showing invalid shader resource in pipeline state viewer since v1.24

Revert "Hide invalid shader resources"

This reverts commit e62b6fa13d24bcd8c9d2e2109a140efe1c068736.

Hide invalid shader resources on D3D12
This commit is contained in:
KenLee authored and Baldur Karlsson committed 2023-07-26 22:01:46 +01:00
1 parent 7452e29cec
commit 32ab4273bf
1 file changed
+4
@@ -1154,6 +1154,10 @@ void D3D12PipelineStateViewer::setShaderState(
if(bind == NULL ||
(bind->arraySize != ~0U && bind->bind + (int)bind->arraySize <= shaderReg))
{
// reset the bind if we don't have any match
bind = NULL;
shaderInput = NULL;
for(int k = 0; k < binds.count(); k++)
{
const Bindpoint &b = binds[k];