Shader: Add support for for-each statements and improve arrays

This commit is contained in:
Jérôme Leclercq
2022-01-02 22:02:11 +01:00
parent aac6e38da2
commit 4fe44339c5
30 changed files with 712 additions and 93 deletions

View File

@@ -71,6 +71,7 @@ namespace Nz
void AppendLine(const std::string& txt = {});
template<typename... Args> void AppendLine(Args&&... params);
void AppendStatementList(std::vector<ShaderAst::StatementPtr>& statements);
void AppendVariableDeclaration(const ShaderAst::ExpressionType& varType, const std::string& varName);
void EnterScope();
void LeaveScope(bool skipLine = true);