예제 #1
0
 /// <summary>
 /// Returns the hash code for this instance.
 /// </summary>
 /// <returns>A 32-bit signed integer that is the hash code for this instance.</returns>
 public override int GetHashCode()
 {
     return(HashHelper.Combine(
                CullMode.GetHashCode(),
                FillMode.GetHashCode(),
                FrontFace.GetHashCode(),
                DepthClipEnabled.GetHashCode(),
                ScissorTestEnabled.GetHashCode()));
 }
예제 #2
0
 public override int GetHashCode()
 {
     unchecked
     {
         int hash = 17;
         hash = hash * 23 + FrontFace.GetHashCode();
         return(hash);
     }
 }
예제 #3
0
 public override int GetHashCode()
 {
     return(DepthTest.GetHashCode() ^ DepthBias.GetHashCode() ^ FrontFace.GetHashCode() ^ CullMode.GetHashCode() ^ BlendMode.GetHashCode() ^ FillMode.GetHashCode() ^ StencilMode.GetHashCode());
 }