6 namespace SiliconStudio.Shaders.Ast.Hlsl
13 #region Constants and Fields
31 private static readonly
SamplerStateType[] SamplerStateTypes =
new[] { SamplerState, SamplerStateOld, SamplerComparisonState };
58 return base.Equals(other);
62 public override bool Equals(
object obj)
64 if (ReferenceEquals(null, obj))
68 if (ReferenceEquals(
this, obj))
78 return base.GetHashCode();
91 return Equals(left, right);
104 return !Equals(left, right);
114 return SamplerStateTypes.FirstOrDefault(stateType => string.Compare(name, stateType.Name.Text,
true) == 0);
SamplerStateType(string name)
Initializes a new instance of the SamplerStateType class.
static SamplerStateType Parse(string name)
Parses the specified name.
override bool Equals(object obj)
override int GetHashCode()
bool Equals(SamplerStateType other)
SamplerStateType()
Initializes a new instance of the SamplerStateType class.