Esempio n. 1
0
 public Reference(ShaderVariable variable, ShaderType.Field field) : base(variable)
 {
     this.field = field;
 }
Esempio n. 2
0
 public ShaderFieldVariable(ShaderContext context, ShaderVariable baseVariable, ShaderType.Field field)
     : base(context, $"{baseVariable.Name}_field_{field.Name}", field.ShaderTypeName, baseVariable.ArrayCount)
 {
     reference = new Reference(baseVariable, field);
 }