Shader: Rename Optimize to ConstantPropagation
This commit is contained in:
@@ -11,7 +11,7 @@
|
||||
#include <Nazara/Shader/SpirvData.hpp>
|
||||
#include <Nazara/Shader/SpirvSection.hpp>
|
||||
#include <Nazara/Shader/Ast/AstCloner.hpp>
|
||||
#include <Nazara/Shader/Ast/AstOptimizer.hpp>
|
||||
#include <Nazara/Shader/Ast/AstConstantPropagationVisitor.hpp>
|
||||
#include <Nazara/Shader/Ast/AstRecursiveVisitor.hpp>
|
||||
#include <Nazara/Shader/Ast/EliminateUnusedPassVisitor.hpp>
|
||||
#include <Nazara/Shader/Ast/SanitizeVisitor.hpp>
|
||||
@@ -521,7 +521,7 @@ namespace Nz
|
||||
{
|
||||
ShaderAst::StatementPtr tempAst;
|
||||
|
||||
tempAst = ShaderAst::Optimize(*targetAst);
|
||||
tempAst = ShaderAst::PropagateConstants(*targetAst);
|
||||
optimizedAst = ShaderAst::EliminateUnusedPass(*tempAst);
|
||||
|
||||
targetAst = optimizedAst.get();
|
||||
|
||||
Reference in New Issue
Block a user