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