Improve matinfo output
This commit is contained in:
@@ -38,7 +38,8 @@ using namespace utils;
|
||||
namespace filament {
|
||||
namespace matdbg {
|
||||
|
||||
static const int alignment = 24;
|
||||
constexpr int alignment = 32;
|
||||
constexpr int shortAlignment = 12;
|
||||
|
||||
static string arraySizeToString(uint64_t size) {
|
||||
if (size > 1) {
|
||||
@@ -207,9 +208,9 @@ static bool printParametersInfo(ostream& text, const ChunkContainer& container)
|
||||
|
||||
text << " "
|
||||
<< setw(alignment) << fieldName.c_str()
|
||||
<< setw(alignment) << toString(UniformType(fieldType))
|
||||
<< setw(shortAlignment) << toString(UniformType(fieldType))
|
||||
<< arraySizeToString(fieldSize)
|
||||
<< setw(10) << toString(Precision(fieldPrecision))
|
||||
<< setw(shortAlignment) << toString(Precision(fieldPrecision))
|
||||
<< endl;
|
||||
}
|
||||
|
||||
@@ -241,8 +242,8 @@ static bool printParametersInfo(ostream& text, const ChunkContainer& container)
|
||||
|
||||
text << " "
|
||||
<< setw(alignment) << fieldName.c_str()
|
||||
<< setw(alignment) << toString(SamplerType(fieldType))
|
||||
<< setw(10) << toString(Precision(fieldPrecision))
|
||||
<< setw(shortAlignment) << toString(SamplerType(fieldType))
|
||||
<< setw(shortAlignment) << toString(Precision(fieldPrecision))
|
||||
<< toString(SamplerFormat(fieldFormat))
|
||||
<< endl;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user