Shader: Add export attribute for structs ([export])

This commit is contained in:
Jérôme Leclercq
2022-03-04 18:26:18 +01:00
parent a2f4f3c802
commit ca83f363a3
6 changed files with 40 additions and 15 deletions

View File

@@ -148,6 +148,7 @@ namespace Nz::ShaderAst
{
auto clone = std::make_unique<DeclareStructStatement>();
clone->structIndex = node.structIndex;
clone->isExported = Clone(node.isExported);
clone->description.layout = Clone(node.description.layout);
clone->description.name = node.description.name;