26 namespace SiliconStudio.
Paradox.Graphics
41 public MipMapDescription(
int width,
int height,
int depth,
int rowStride,
int depthStride,
int widthPacked,
int heightPacked)
46 RowStride = rowStride;
47 DepthStride = depthStride;
48 MipmapSize = depthStride * depth;
49 WidthPacked = widthPacked;
50 HeightPacked = heightPacked;
95 if (ReferenceEquals(null, other))
97 if (ReferenceEquals(
this, other))
99 return this.Width == other.Width && this.Height == other.Height && this.WidthPacked == other.WidthPacked && this.HeightPacked == other.HeightPacked && this.Depth == other.Depth && this.RowStride == other.RowStride && this.MipmapSize == other.MipmapSize && this.DepthStride == other.DepthStride;
104 if (ReferenceEquals(null, obj))
106 if (ReferenceEquals(
this, obj))
108 if (obj.GetType() != this.GetType())
117 int hashCode = this.Width;
118 hashCode = (hashCode * 397) ^ this.Height;
119 hashCode = (hashCode * 397) ^ this.WidthPacked;
120 hashCode = (hashCode * 397) ^ this.HeightPacked;
121 hashCode = (hashCode * 397) ^ this.Depth;
122 hashCode = (hashCode * 397) ^ this.RowStride;
123 hashCode = (hashCode * 397) ^ this.MipmapSize;
124 hashCode = (hashCode * 397) ^ this.DepthStride;
137 return Equals(left, right);
148 return !Equals(left, right);
bool Equals(MipMapDescription other)
readonly int Height
Height of this mipmap.
override bool Equals(object obj)
readonly int Depth
Depth of this mipmap.
readonly int WidthPacked
Width of this mipmap.
override int GetHashCode()
readonly int MipmapSize
Size in bytes of this whole mipmap.
readonly int DepthStride
DepthStride of this mipmap (number of bytes per depth slice).
MipMapDescription(int width, int height, int depth, int rowStride, int depthStride, int widthPacked, int heightPacked)
Initializes a new instance of the MipMapDescription class.
readonly int RowStride
RowStride of this mipmap (number of bytes per row).
readonly int Width
Width of this mipmap.
readonly int HeightPacked
Height of this mipmap.