Shader: Fixes some errors and add unit tests
This commit is contained in:
@@ -285,7 +285,7 @@ namespace Nz::ShaderLang
|
||||
}
|
||||
|
||||
if (!moduleVersion.has_value())
|
||||
throw ParserMissingAttributeError{ moduleToken.location };
|
||||
throw ParserMissingAttributeError{ moduleToken.location, ShaderAst::AttributeType::LangVersion };
|
||||
|
||||
if (!moduleId)
|
||||
moduleId = Uuid::Generate();
|
||||
|
||||
Reference in New Issue
Block a user