Fix compilation after merge

This commit is contained in:
Lynix 2022-02-27 20:18:36 +01:00
parent 4c226eda0c
commit 1e606f3043
3 changed files with 9 additions and 2 deletions

View File

@ -27,7 +27,8 @@ namespace Nz::ShaderAst
inline const UsageSet& GetUsage() const;
void Process(Statement& statement, const Config& config = {});
inline void Process(Statement& statement);
void Process(Statement& statement, const Config& config);
inline void Resolve();

View File

@ -12,6 +12,12 @@ namespace Nz::ShaderAst
return m_resolvedUsage;
}
inline void DependencyCheckerVisitor::Process(Statement& statement)
{
Config defaultConfig;
return Process(statement, defaultConfig);
}
void DependencyCheckerVisitor::Resolve()
{
Resolve(m_globalUsage);

View File

@ -43,8 +43,8 @@ namespace Nz::ShaderAst
Context* m_context;
};
inline StatementPtr EliminateUnusedPass(Statement& ast);
inline StatementPtr EliminateUnusedPass(Statement& ast, const DependencyCheckerVisitor::Config& config);
inline StatementPtr EliminateUnusedPass(Statement& ast, const DependencyCheckerVisitor::Config& config = {});
inline StatementPtr EliminateUnusedPass(Statement& ast, const DependencyCheckerVisitor::UsageSet& usageSet);
}