Shader: Add support for for-each statements and improve arrays
This commit is contained in:
@@ -487,7 +487,9 @@ namespace Nz
|
||||
{
|
||||
ShaderAst::SanitizeVisitor::Options options;
|
||||
options.optionValues = states.optionValues;
|
||||
options.reduceLoopsToWhile = true;
|
||||
options.removeCompoundAssignments = true;
|
||||
options.removeOptionDeclaration = true;
|
||||
options.splitMultipleBranches = true;
|
||||
|
||||
sanitizedAst = ShaderAst::Sanitize(shader, options);
|
||||
|
||||
Reference in New Issue
Block a user