public override int GetHashCode() { unchecked // Overflow is fine, just wrap { int hash = 17; hash = hash * 23 + StencilCompareFunction.GetHashCode(); hash = hash * 23 + DepthFailure.GetHashCode(); hash = hash * 23 + DepthStencilPass.GetHashCode(); hash = hash * 23 + ReadMask.GetHashCode(); hash = hash * 23 + StencilFailure.GetHashCode(); hash = hash * 23 + WriteMask.GetHashCode(); //hash = hash * 23 + StencilReference.GetHashCode(); return(hash); } }
public override int GetHashCode() { return(Function.GetHashCode() ^ Reference.GetHashCode() ^ Mask.GetHashCode()); }
public override int GetHashCode() => Function.GetHashCode() ^ Reference.GetHashCode() ^ Mask.GetHashCode();