Allow multiple depth targets to be viewable in the TextureViewer

This commit is contained in:
Leonard Tsai
2023-01-10 16:32:47 -08:00
committed by Baldur Karlsson
parent 588d205279
commit f578e62684
6 changed files with 77 additions and 2 deletions
@@ -185,6 +185,7 @@ ShaderMessageViewer::ShaderMessageViewer(ICaptureContext &ctx, ShaderStageMask s
m_Multisampled = false;
rdcarray<BoundResource> outs = pipe.GetOutputTargets();
outs.push_back(pipe.GetDepthTarget());
outs.push_back(pipe.GetDepthResolveTarget());
for(const BoundResource &o : outs)
{
if(o.resourceId == ResourceId())