Set the correct number of columns for packed formats in buffer view

This commit is contained in:
baldurk
2020-05-06 11:11:55 +01:00
parent 41b911d1d0
commit 417dc91925
+3
View File
@@ -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
{