Shader: Add SourceLocation members
TODO: Fill from Parser and use them for error throwing in SanitizeVisitor
This commit is contained in:
committed by
Jérôme Leclercq
parent
b8bf19f8cd
commit
960ab64d98
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user