6 namespace SiliconStudio.Shaders.Ast.Hlsl
13 #region Constants and Fields
30 private static readonly
StateType[] StateTypes =
new[] { BlendState, DepthStencilState, RasterizerState };
57 return base.Equals(other);
61 public override bool Equals(
object obj)
63 if (ReferenceEquals(null, obj))
67 if (ReferenceEquals(
this, obj))
77 return base.GetHashCode();
90 return Equals(left, right);
103 return !Equals(left, right);
113 return StateTypes.FirstOrDefault(stateType => string.Compare(name, stateType.Name.Text,
true) == 0);
bool Equals(StateType other)
static StateType Parse(string name)
Parses the specified name.
StateType(string name)
Initializes a new instance of the StateType class.
StateType()
Initializes a new instance of the StateType class.
override int GetHashCode()
override bool Equals(object obj)