Process packing rules when parsing formatting strings

* Instead of having a global tight/non-tight we now let the format string
  specify the packing rules (defaulting to scalar - i.e. tight packing as
  before), and use the resulting properties to calculate packing.
This commit is contained in:
baldurk
2022-03-11 14:45:24 +00:00
parent 7abe72be6b
commit 4dc7b3f8b7
4 changed files with 278 additions and 137 deletions
@@ -281,7 +281,7 @@ void ConstantBufferPreviewer::processFormat(const QString &format)
{
QString errors;
m_formatOverride = BufferFormatter::ParseFormatString(format, ~0ULL, false, errors);
m_formatOverride = BufferFormatter::ParseFormatString(format, ~0ULL, errors);
ui->formatSpecifier->setErrors(errors);
}