public void AssertHasFeatures(Shader.ShaderFeatures features) { if ((Features & features) == 0) { throw new InvalidOperationException($"ShaderProgram \"{Name}\" does not support the feature(s) {features}"); } }
public bool HasFeatures(Shader.ShaderFeatures features) { return((Features & features) != 0); }