コード例 #1
0
 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);
     }
 }
コード例 #2
0
 public override int GetHashCode()
 {
     return(Function.GetHashCode() ^ Reference.GetHashCode() ^ Mask.GetHashCode());
 }
コード例 #3
0
 public override int GetHashCode()
 => Function.GetHashCode() ^ Reference.GetHashCode() ^ Mask.GetHashCode();