From 417dc91925465cfaf2b66fde9314d76bd8b4b561 Mon Sep 17 00:00:00 2001 From: baldurk Date: Wed, 6 May 2020 11:11:55 +0100 Subject: [PATCH] Set the correct number of columns for packed formats in buffer view --- qrenderdoc/Code/BufferFormatter.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/qrenderdoc/Code/BufferFormatter.cpp b/qrenderdoc/Code/BufferFormatter.cpp index 4a448b024..a4dda29df 100644 --- a/qrenderdoc/Code/BufferFormatter.cpp +++ b/qrenderdoc/Code/BufferFormatter.cpp @@ -343,18 +343,21 @@ ShaderConstant BufferFormatter::ParseFormatString(const QString &formatString, u { el.type.descriptor.type = VarType::UInt; interpretType = ResourceFormatType::R10G10B10A2; + el.type.descriptor.columns = 4; } else if(basetype == lit("unormten")) { el.type.descriptor.type = VarType::UInt; interpretCompType = CompType::UNorm; interpretType = ResourceFormatType::R10G10B10A2; + el.type.descriptor.columns = 4; } else if(basetype == lit("floateleven")) { el.type.descriptor.type = VarType::Float; interpretCompType = CompType::Float; interpretType = ResourceFormatType::R11G11B10; + el.type.descriptor.columns = 3; } else {