Shader: Fix dependency check of modules

This commit is contained in:
SirLynix
2022-04-05 08:35:12 +02:00
parent 7f15c66f16
commit 18edd41048
5 changed files with 66 additions and 45 deletions

View File

@@ -22,15 +22,15 @@ namespace Nz::ShaderAst
m_globalUsage.usedStructs.UnboundedSet(structIndex);
}
inline void DependencyCheckerVisitor::Process(Statement& statement)
inline void DependencyCheckerVisitor::Register(Statement& statement)
{
Config defaultConfig;
return Process(statement, defaultConfig);
return Register(statement, defaultConfig);
}
void DependencyCheckerVisitor::Resolve()
inline void DependencyCheckerVisitor::Resolve(bool allowUnknownId)
{
Resolve(m_globalUsage);
Resolve(m_globalUsage, allowUnknownId);
}
}