Esempio n. 1
0
 /// <inheritdoc/>
 public override int GetHashCode()
 {
     unchecked
     {
         int hashCode = Texture?.GetHashCode() ?? 0;
         hashCode = (hashCode * 397) ^ Level.GetHashCode();
         hashCode = (hashCode * 397) ^ Slice.GetHashCode();
         hashCode = (hashCode * 397) ^ LoadAction.GetHashCode();
         hashCode = (hashCode * 397) ^ StoreAction.GetHashCode();
         hashCode = (hashCode * 397) ^ ClearColor.GetHashCode();
         return(hashCode);
     }
 }
Esempio n. 2
0
 /// <inheritdoc/>
 public override int GetHashCode()
 {
     unchecked
     {
         int hashCode = Texture?.GetHashCode() ?? 0;
         hashCode = (hashCode * 397) ^ Level.GetHashCode();
         hashCode = (hashCode * 397) ^ Slice.GetHashCode();
         hashCode = (hashCode * 397) ^ DepthLoadAction.GetHashCode();
         hashCode = (hashCode * 397) ^ DepthStoreAction.GetHashCode();
         hashCode = (hashCode * 397) ^ StencilLoadAction.GetHashCode();
         hashCode = (hashCode * 397) ^ StencilStoreAction.GetHashCode();
         hashCode = (hashCode * 397) ^ ClearDepth.GetHashCode();
         hashCode = (hashCode * 397) ^ ClearStencil.GetHashCode();
         return(hashCode);
     }
 }