Shader: Add support for error messages (WIP)

This commit is contained in:
SirLynix
2022-03-26 20:23:34 +01:00
committed by Jérôme Leclercq
parent f14b10baf4
commit ebad7b5e8c
11 changed files with 499 additions and 189 deletions

View File

@@ -12,9 +12,9 @@ namespace Nz::ShaderLang
{
}
inline ShaderAst::ModulePtr Parse(const std::string_view& source)
inline ShaderAst::ModulePtr Parse(const std::string_view& source, const std::string& filePath)
{
return Parse(Tokenize(source));
return Parse(Tokenize(source, filePath));
}
inline ShaderAst::ModulePtr Parse(const std::vector<Token>& tokens)