Shader: Add import statement (not doing anything for now)
This commit is contained in:
@@ -954,6 +954,20 @@ namespace Nz
|
||||
ScopeVisit(*node.statement);
|
||||
}
|
||||
|
||||
void LangWriter::Visit(ShaderAst::ImportStatement& node)
|
||||
{
|
||||
bool first = true;
|
||||
for (const std::string& path : node.modulePath)
|
||||
{
|
||||
if (!first)
|
||||
Append("/");
|
||||
|
||||
Append(path);
|
||||
|
||||
first = false;
|
||||
}
|
||||
}
|
||||
|
||||
void LangWriter::Visit(ShaderAst::IntrinsicExpression& node)
|
||||
{
|
||||
bool method = false;
|
||||
|
||||
Reference in New Issue
Block a user