public override int GetHashCode() { return(HashHelper.Combine( CullMode.GetHashCode(), HashHelper.Combine( FillMode.GetHashCode(), HashHelper.Combine(IsDepthClipEnabled.GetHashCode(), IsScissorTestEnabled.GetHashCode())))); }
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); }
public override int GetHashCode() { return(DepthTest.GetHashCode() ^ DepthBias.GetHashCode() ^ FrontFace.GetHashCode() ^ CullMode.GetHashCode() ^ BlendMode.GetHashCode() ^ FillMode.GetHashCode() ^ StencilMode.GetHashCode()); }
/// <summary> /// Returns a hash code. /// </summary> /// <returns> /// A hash code for this instance. /// </returns> public override int GetHashCode() { return(CullMode.GetHashCode() ^ EnableMultisampling.GetHashCode()); }