Class MipMapDescription
Describes a mipmap.
public class MipMapDescription : IEquatable<MipMapDescription>
- Inheritance
-
objectMipMapDescription
- Implements
Constructors
MipMapDescription(int, int, int, int, int, int, int)
Initializes a new instance of the MipMapDescription class.
public MipMapDescription(int width, int height, int depth, int rowStride, int depthStride, int widthPacked, int heightPacked)
Parameters
widthintThe width.
heightintThe height.
depthintThe depth.
rowStrideintThe row stride.
depthStrideintThe depth stride.
widthPackedintheightPackedint
Fields
Depth
Depth of this mipmap.
public readonly int Depth
Field Value
DepthStride
DepthStride of this mipmap (number of bytes per depth slice).
public readonly int DepthStride
Field Value
Height
Height of this mipmap.
public readonly int Height
Field Value
HeightPacked
Height of this mipmap.
public readonly int HeightPacked
Field Value
MipmapSize
Size in bytes of this whole mipmap.
public readonly int MipmapSize
Field Value
RowStride
RowStride of this mipmap (number of bytes per row).
public readonly int RowStride
Field Value
Width
Width of this mipmap.
public readonly int Width
Field Value
WidthPacked
Width of this mipmap.
public readonly int WidthPacked
Field Value
Methods
Equals(MipMapDescription)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(MipMapDescription other)
Parameters
otherMipMapDescriptionAn object to compare with this object.
Returns
Equals(object)
Determines whether the specified object is equal to the current object.
public override bool Equals(object obj)
Parameters
objobjectThe object to compare with the current object.
Returns
GetHashCode()
Serves as the default hash function.
public override int GetHashCode()
Returns
- int
A hash code for the current object.
Operators
operator ==(MipMapDescription, MipMapDescription)
Implements the ==.
public static bool operator ==(MipMapDescription left, MipMapDescription right)
Parameters
leftMipMapDescriptionThe left.
rightMipMapDescriptionThe right.
Returns
- bool
The result of the operator.
operator !=(MipMapDescription, MipMapDescription)
Implements the !=.
public static bool operator !=(MipMapDescription left, MipMapDescription right)
Parameters
leftMipMapDescriptionThe left.
rightMipMapDescriptionThe right.
Returns
- bool
The result of the operator.