mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-08-15 02:56:50 +00:00
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:
@@ -2672,7 +2672,7 @@ void BufferViewer::OnEventChanged(uint32_t eventId)
|
||||
else
|
||||
{
|
||||
QString errors;
|
||||
ShaderConstant constant = BufferFormatter::ParseFormatString(m_Format, m_ByteSize, true, errors);
|
||||
ShaderConstant constant = BufferFormatter::ParseFormatString(m_Format, m_ByteSize, errors);
|
||||
|
||||
UnrollConstant(constant, bufdata->vsinConfig.columns, bufdata->vsinConfig.props);
|
||||
|
||||
@@ -4175,7 +4175,7 @@ void BufferViewer::processFormat(const QString &format)
|
||||
|
||||
BufferConfiguration bufconfig;
|
||||
|
||||
ShaderConstant cols = BufferFormatter::ParseFormatString(format, m_ByteSize, true, errors);
|
||||
ShaderConstant cols = BufferFormatter::ParseFormatString(format, m_ByteSize, errors);
|
||||
|
||||
CalcColumnWidth(MaxNumRows(cols));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user