Shader: Add support for error messages (WIP)
This commit is contained in:
committed by
Jérôme Leclercq
parent
f14b10baf4
commit
ebad7b5e8c
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user