public ShaderMethod(ShaderMethodTypes type) { this.Type = type; if (type == ShaderMethodTypes.VS) { Precision = ShaderMethodPrecisions.High; } else { Precision = ShaderMethodPrecisions.Low; } }
public ShaderMethod(ShaderMethodTypes type, ShaderMethodPrecisions precision) { this.Type = type; this.Precision = precision; }
public ShaderMethod(ShaderMethodTypes type) { this.Type = type; if (type == ShaderMethodTypes.VS) Precision = ShaderMethodPrecisions.High; else Precision = ShaderMethodPrecisions.Low; }