3 using System.Collections.Generic;
6 namespace SiliconStudio.Shaders.Ast.Glsl
13 #region Constructors and Destructors
20 Layouts =
new List<LayoutKeyValue>();
30 Layouts.AddRange(layouts);
35 #region Public Properties
43 public List<LayoutKeyValue> Layouts {
get; set; }
47 #region Public Methods
58 public override string DisplayName
62 var builder =
new StringBuilder();
63 builder.Append(
"layout(");
64 for (
int i = 0; i < Layouts.Count; i++)
66 if (i > 0) builder.Append(
", ");
67 builder.Append(Layouts[i]);
69 return builder.ToString();
LayoutQualifier(params LayoutKeyValue[] layouts)
Initializes a new instance of the LayoutQualifier class.
Describe a register location
LayoutQualifier()
Initializes a new instance of the LayoutQualifier class.
override IEnumerable< Node > Childrens()
Gets the child nodes. An enumeration of child nodes