From f5cc5c22add75dff68786a63e1cddd987896bc7e Mon Sep 17 00:00:00 2001 From: baldurk Date: Tue, 15 Oct 2019 17:34:38 +0100 Subject: [PATCH] Don't display typed buffers as structured in D3D11 pipeline state --- qrenderdoc/Windows/PipelineState/D3D11PipelineStateViewer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qrenderdoc/Windows/PipelineState/D3D11PipelineStateViewer.cpp b/qrenderdoc/Windows/PipelineState/D3D11PipelineStateViewer.cpp index 876d50613..af30c9104 100644 --- a/qrenderdoc/Windows/PipelineState/D3D11PipelineStateViewer.cpp +++ b/qrenderdoc/Windows/PipelineState/D3D11PipelineStateViewer.cpp @@ -694,7 +694,7 @@ void D3D11PipelineStateViewer::addResourceRow(const D3D11ViewTag &view, typeName = QFormatStr("%1ByteAddressBuffer") .arg(view.type == D3D11ViewTag::UAV ? lit("RW") : QString()); } - else if(r.elementByteSize > 0) + else if(r.elementByteSize > 0 && r.viewFormat.type == ResourceFormatType::Undefined) { // for structured buffers, display how many 'elements' there are in the buffer typeName = QFormatStr("%1StructuredBuffer[%2]")