Set byte strides for error case of buffer formatter

This commit is contained in:
baldurk
2020-04-28 14:53:25 +01:00
parent ade2325623
commit 84a804f95d
+3
View File
@@ -459,6 +459,9 @@ ShaderConstant BufferFormatter::ParseFormatString(const QString &formatString, u
if(maxLen > 0 && maxLen < 4)
el.type.descriptor.type = VarType::UByte;
el.type.descriptor.arrayByteStride = el.type.descriptor.matrixByteStride =
el.type.descriptor.columns * VarTypeByteSize(el.type.descriptor.type);
SetInterpretedResourceFormat(el, ResourceFormatType::Regular, CompType::Typeless);
root.structDef.type.members.push_back(el);