예제 #1
0
 public Reference(ShaderVariable variable, ShaderType.Field field) : base(variable)
 {
     this.field = field;
 }
예제 #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);
 }