mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-08-17 03:56:43 +00:00
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:
committed by
Baldur Karlsson
parent
1d64fffd42
commit
1137c4694c
@@ -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++)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user