mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-05 01:20:42 +00:00
Display matrices in multiple lines instead of a single line
* This makes it easier to preview without expanding the variables, and also clarifies the row/column distinction in a "float3x4" since it's immediately clear how many rows there are.
This commit is contained in:
@@ -903,11 +903,11 @@ QString VarString(const ShaderVariable &v)
|
||||
for(int i = 0; i < (int)v.rows; i++)
|
||||
{
|
||||
if(i > 0)
|
||||
ret += lit(", ");
|
||||
ret += lit("\n");
|
||||
ret += lit("{") + RowString(v, i) + lit("}");
|
||||
}
|
||||
|
||||
return lit("{ ") + ret + lit(" }");
|
||||
return ret;
|
||||
}
|
||||
|
||||
QString RowTypeString(const ShaderVariable &v)
|
||||
|
||||
@@ -211,6 +211,9 @@
|
||||
<property name="selectionMode">
|
||||
<enum>QAbstractItemView::ContiguousSelection</enum>
|
||||
</property>
|
||||
<property name="verticalScrollMode">
|
||||
<enum>QAbstractItemView::ScrollPerPixel</enum>
|
||||
</property>
|
||||
<property name="allColumnsShowFocus">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
|
||||
Reference in New Issue
Block a user