mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-29 21:30:53 +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)
|
||||
|
||||
Reference in New Issue
Block a user