From 1ad2cf09056b2c28e857fe8d600375d30aecfa80 Mon Sep 17 00:00:00 2001 From: baldurk Date: Fri, 8 May 2020 19:01:40 +0100 Subject: [PATCH] Handle opengl dvecX / dmatX types in buffer formatter --- qrenderdoc/Code/BufferFormatter.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/qrenderdoc/Code/BufferFormatter.cpp b/qrenderdoc/Code/BufferFormatter.cpp index c03ac93b1..6634d2718 100644 --- a/qrenderdoc/Code/BufferFormatter.cpp +++ b/qrenderdoc/Code/BufferFormatter.cpp @@ -61,8 +61,8 @@ ShaderConstant BufferFormatter::ParseFormatString(const QString &formatString, u "|ubyte|ushort|uint|ulong" // unsigned ints "|xbyte|xshort|xint|xlong" // hex ints "|half|float|double" // float types - "|vec|uvec|ivec" // OpenGL vector types - "|mat|umat|imat" // OpenGL matrix types + "|vec|uvec|ivec|dvec" // OpenGL vector types + "|mat|umat|imat|dmat" // OpenGL matrix types ")" // end of the type group "([1-9])?" // might be a vector "(x[1-9])?" // or a matrix @@ -315,7 +315,7 @@ ShaderConstant BufferFormatter::ParseFormatString(const QString &formatString, u { el.type.descriptor.type = VarType::Float; } - else if(basetype == lit("double")) + else if(basetype == lit("double") || basetype == lit("dvec") || basetype == lit("dmat")) { el.type.descriptor.type = VarType::Double; }