baldurk / renderdoc

RenderDoc is a stand-alone graphics debugging tool.
https://renderdoc.org
MIT License
8.62k stars 1.3k forks source link

Resource inspector should show pipeline usage in frame #3310

Open w-pearson opened 1 month ago

w-pearson commented 1 month ago

Description

While investigating #3307, I ended up knowing a pipeline ID without knowing where it was used. I was able to find the pipeline in renderdoc's resource inspector, and the "related resources" section let me go from the pipeline library to the complete graphics pipeline. However, for both the pipeline library and the complete graphics pipeline, the "usage in frame" section is completely empty. This initially confused me into thinking the pipeline wasn't actually in use in the frame.

I don't think that's going to be a scenario anyone else will run into, but having seen that I think that it would be useful to have pipelines show up on "usage in frame". The main use-case for that would be finding other uses of a pipeline in the same frame once you've seen one. It would also be useful to do this with individual shaders, although the related resources section already allows finding pipelines that use specific shaders. This is already possible for vertex and index buffers, so I don't think it would be too difficult to implement.

Environment