Display matrix memory order in cbuffer type column. Refs #800

This commit is contained in:
baldurk
2018-02-19 11:53:20 +00:00
parent 41112d10e5
commit 2eb56e4279
9 changed files with 41 additions and 21 deletions
+6 -1
View File
@@ -840,7 +840,12 @@ QString TypeString(const ShaderVariable &v)
if(v.rows == 1)
return QFormatStr("%1%2").arg(typeStr).arg(v.columns);
else
return QFormatStr("%1%2x%3").arg(typeStr).arg(v.rows).arg(v.columns);
return QFormatStr("%1%2x%3 (%4)")
.arg(typeStr)
.arg(v.rows)
.arg(v.columns)
.arg(v.rowMajor ? QApplication::tr("row major", "FormatElement")
: QApplication::tr("column major", "FormatElement"));
}
template <typename el>