Shader: Add initial support for arrays
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
namespace Nz::ShaderAst
|
||||
{
|
||||
template<typename T>
|
||||
AttributeValue<T> AstCloner::CloneAttribute(const AttributeValue<T>& attribute)
|
||||
AttributeValue<T> AstCloner::Clone(const AttributeValue<T>& attribute)
|
||||
{
|
||||
if (!attribute.HasValue())
|
||||
return {};
|
||||
@@ -38,6 +38,14 @@ namespace Nz::ShaderAst
|
||||
return CloneStatement(*statement);
|
||||
}
|
||||
|
||||
|
||||
template<typename T>
|
||||
AttributeValue<T> Clone(const AttributeValue<T>& attribute)
|
||||
{
|
||||
AstCloner cloner;
|
||||
return cloner.Clone(attribute);
|
||||
}
|
||||
|
||||
inline ExpressionPtr Clone(Expression& node)
|
||||
{
|
||||
AstCloner cloner;
|
||||
|
||||
Reference in New Issue
Block a user