Allow multiple depth targets to be viewable in the TextureViewer

This commit is contained in:
Leonard Tsai authored and Baldur Karlsson committed 2023-01-18 12:56:47 +00:00
1 parent 588d205279
commit f578e62684
6 files changed
+77 -2

No files matched your search

@@ -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())