From db04714f8d7ac7f8aa5e000e14f6503acc4211b2 Mon Sep 17 00:00:00 2001 From: baldurk Date: Mon, 2 Mar 2015 15:26:11 +0000 Subject: [PATCH] Fix case where buffer format wasn't auto-populated correctly --- .../Windows/PipelineState/D3D11PipelineStateViewer.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/renderdocui/Windows/PipelineState/D3D11PipelineStateViewer.cs b/renderdocui/Windows/PipelineState/D3D11PipelineStateViewer.cs index e9b44c2af..b6604d299 100644 --- a/renderdocui/Windows/PipelineState/D3D11PipelineStateViewer.cs +++ b/renderdocui/Windows/PipelineState/D3D11PipelineStateViewer.cs @@ -1533,7 +1533,7 @@ namespace renderdocui.Windows.PipelineState if (view.Format.compType == FormatComponentType.UInt) format = "uintten"; if (view.Format.compType == FormatComponentType.UNorm) format = "unormten"; } - else + else if (!view.Format.special) { switch (view.Format.compByteWidth) { @@ -1567,12 +1567,12 @@ namespace renderdocui.Windows.PipelineState format += view.Format.compCount; } - - format += " " + r.name + ";"; } if (format == "" && r.variableType.Name.Length > 0) - format = r.variableType.Name + " " + r.name + ";"; + format = r.variableType.Name; + + format += " " + r.name + ";"; } else {