public override int GetHashCode()
 {
     return(HashHelper.Combine(
                CullMode.GetHashCode(),
                HashHelper.Combine(
                    FillMode.GetHashCode(),
                    HashHelper.Combine(IsDepthClipEnabled.GetHashCode(), IsScissorTestEnabled.GetHashCode()))));
 }
示例#2
0
        public override int GetHashCode()
        {
            int hash = 0;

            hash = (hash * 397) ^ PolyID.GetHashCode();
            hash = (hash * 397) ^ Stippling.GetHashCode();
            hash = (hash * 397) ^ SidesType.GetHashCode();
            hash = (hash * 397) ^ PosSurface.GetHashCode();
            hash = (hash * 397) ^ NegSurface.GetHashCode();

            for (var i = 0; i < Vertices.Count; i++)
            {
                hash = (hash * 397) ^ Vertices[i].GetHashCode();
                hash = (hash * 397) ^ VertexIDs[i].GetHashCode();
            }

            return(hash);
        }
示例#3
0
 public override int GetHashCode()
 {
     return(DepthTest.GetHashCode() ^ DepthBias.GetHashCode() ^ FrontFace.GetHashCode() ^ CullMode.GetHashCode() ^ BlendMode.GetHashCode() ^ FillMode.GetHashCode() ^ StencilMode.GetHashCode());
 }
示例#4
0
 /// <summary>
 /// Returns a hash code.
 /// </summary>
 /// <returns>
 /// A hash code for this instance.
 /// </returns>
 public override int GetHashCode()
 {
     return(CullMode.GetHashCode() ^ EnableMultisampling.GetHashCode());
 }