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