mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-08-23 06:56:40 +00:00
Fix formatting of buffers with explicit unbounded arrays
This commit is contained in:
@@ -2248,8 +2248,7 @@ QString BufferFormatter::GetBufferFormatString(Packing::Rules pack, const Shader
|
||||
QMap<ShaderConstant, QString> anonStructs;
|
||||
format = DeclareStruct(pack, declaredStructs, anonStructs, structName, res.variableType.members,
|
||||
0, QString());
|
||||
format =
|
||||
QFormatStr("%1\n\n%2\n\n%3 buffer[];").arg(DeclarePacking(pack)).arg(format).arg(structName);
|
||||
format = QFormatStr("%1\n\n%2").arg(DeclarePacking(pack)).arg(format);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user