Shader/MultiStatement: Remove sectionName

This commit is contained in:
Jérôme Leclercq
2022-03-12 16:23:13 +01:00
parent b595a5d4ec
commit 5a9a55ee7e
8 changed files with 48 additions and 20 deletions

View File

@@ -1184,13 +1184,7 @@ namespace Nz
void LangWriter::Visit(ShaderAst::MultiStatement& node)
{
if (!node.sectionName.empty())
AppendComment(node.sectionName);
AppendStatementList(node.statements);
if (!node.sectionName.empty())
AppendComment("End: " + node.sectionName);
}
void LangWriter::Visit(ShaderAst::NoOpStatement& /*node*/)