Shader: Add SourceLocation members

TODO: Fill from Parser and use them for error throwing in SanitizeVisitor
This commit is contained in:
SirLynix
2022-03-27 14:06:58 +02:00
committed by Jérôme Leclercq
parent b8bf19f8cd
commit 960ab64d98
15 changed files with 329 additions and 137 deletions

View File

@@ -166,6 +166,15 @@ namespace Nz::ShaderAst
}
}
inline void AstSerializerBase::SourceLoc(ShaderLang::SourceLocation& sourceLoc)
{
SharedString(sourceLoc.file);
Value(sourceLoc.endColumn);
Value(sourceLoc.endLine);
Value(sourceLoc.startColumn);
Value(sourceLoc.startLine);
}
inline void AstSerializerBase::SizeT(std::size_t& val)
{
bool isWriting = IsWriting();