Make D3D12Pipe root element centric instead of shader centric

D3D12Pipe now stores an array of root elements, each one corresponding
to a root element or range in the root signature. Migrated usage in the
D3D12 pipeline state viewer and PipeState retrieval of resources.
Restricted number of resource array textures displayed in the texture
viewer to prevent app hangs.
This commit is contained in:
Steve Karolewics
2020-04-08 18:38:38 +01:00
committed by Baldur Karlsson
parent 1d64fffd42
commit 1137c4694c
11 changed files with 933 additions and 966 deletions
+5 -1
View File
@@ -2264,7 +2264,11 @@ void TextureViewer::InitStageResourcePreviews(ShaderStage stage,
const bool collapseArray = dynamicallyUsedResCount > 20;
const int arrayLen = resArray != NULL ? resArray->count() : 1;
int arrayLen = resArray != NULL ? resArray->count() : 1;
// Too many resources to draw can cause a full-OS hang.
// For now, limit the number displayed per resource array.
arrayLen = qMin(arrayLen, 8);
for(int arrayIdx = 0; arrayIdx < arrayLen; arrayIdx++)
{