/// <inheritdoc />
 public bool Equals(GPUTextureDescription other)
 {
     return(Dimensions == other.Dimensions &&
            Width == other.Width &&
            Height == other.Height &&
            Depth == other.Depth &&
            ArraySize == other.ArraySize &&
            MipLevels == other.MipLevels &&
            Format == other.Format &&
            MultiSampleLevel == other.MultiSampleLevel &&
            Flags == other.Flags &&
            Usage == other.Usage &&
            DefaultClearColor.Equals(ref other.DefaultClearColor));
 }
 /// <inheritdoc />
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = (int)Dimensions;
         hashCode = (hashCode * 397) ^ Width;
         hashCode = (hashCode * 397) ^ Height;
         hashCode = (hashCode * 397) ^ Depth;
         hashCode = (hashCode * 397) ^ ArraySize;
         hashCode = (hashCode * 397) ^ MipLevels;
         hashCode = (hashCode * 397) ^ (int)Format;
         hashCode = (hashCode * 397) ^ (int)MultiSampleLevel;
         hashCode = (hashCode * 397) ^ (int)Flags;
         hashCode = (hashCode * 397) ^ (int)Usage;
         hashCode = (hashCode * 397) ^ DefaultClearColor.GetHashCode();
         return(hashCode);
     }
 }