This commit is contained in:
Lynix
2022-03-08 01:30:48 +01:00
committed by Jérôme Leclercq
parent 012712b8d0
commit 83d26e209e
22 changed files with 295 additions and 142 deletions

View File

@@ -768,6 +768,18 @@ namespace Nz
node.statement->Visit(*this);
}
void LangWriter::Visit(ShaderAst::DeclareAliasStatement& node)
{
throw std::runtime_error("TODO"); //< missing registering
assert(node.aliasIndex);
Append("alias ", node.name, " = ");
assert(node.expression);
node.expression->Visit(*this);
AppendLine(";");
}
void LangWriter::Visit(ShaderAst::DeclareConstStatement& node)
{
assert(node.constIndex);
@@ -780,7 +792,7 @@ namespace Nz
node.expression->Visit(*this);
}
Append(";");
AppendLine(";");
}
void LangWriter::Visit(ShaderAst::ConstantValueExpression& node)