Shader: Change module system (no longer based on path)

This commit is contained in:
Jérôme Leclercq
2022-03-13 15:07:43 +01:00
parent 80f9556f8c
commit e40e8eb204
40 changed files with 224 additions and 271 deletions

View File

@@ -365,10 +365,10 @@ namespace Nz::ShaderBuilder
return identifierNode;
}
inline ShaderAst::ImportStatementPtr Impl::Import::operator()(std::vector<std::string> modulePath) const
inline ShaderAst::ImportStatementPtr Impl::Import::operator()(std::string moduleName) const
{
auto importNode = std::make_unique<ShaderAst::ImportStatement>();
importNode->modulePath = std::move(modulePath);
importNode->moduleName = std::move(moduleName);
return importNode;
}