4 using System.Collections.Generic;
7 namespace SiliconStudio.Shaders.Ast.Hlsl
14 #region Constants and Fields
42 private static readonly
SamplerType[] SamplerTypes =
new[] { Sampler, Sampler1D, Sampler2D, Sampler3D, SamplerCube };
60 : base(name, altNames)
68 return base.Equals(other);
72 public override bool Equals(
object obj)
74 if (ReferenceEquals(null, obj))
78 if (ReferenceEquals(
this, obj))
88 return base.GetHashCode();
101 return Equals(left, right);
114 return !Equals(left, right);
124 return SamplerTypes.FirstOrDefault(stateType => string.Compare(name, stateType.Name.Text,
true) == 0);
bool Equals(SamplerType other)
override int GetHashCode()
static SamplerType Parse(string name)
Parses the specified name.
SamplerType()
Initializes a new instance of the SamplerType class.
SamplerType(string name, params string[] altNames)
Initializes a new instance of the SamplerType class.
override bool Equals(object obj)