Table of Contents

Class MipMapDescription

Namespace
Stride.Graphics
Assembly
Stride.dll

Describes a mipmap.

public class MipMapDescription : IEquatable<MipMapDescription>
Inheritance
MipMapDescription
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

width int

The width.

height int

The height.

depth int

The depth.

rowStride int

The row stride.

depthStride int

The depth stride.

widthPacked int
heightPacked int

Fields

Depth

Depth of this mipmap.

public readonly int Depth

Field Value

int

DepthStride

DepthStride of this mipmap (number of bytes per depth slice).

public readonly int DepthStride

Field Value

int

Height

Height of this mipmap.

public readonly int Height

Field Value

int

HeightPacked

Height of this mipmap.

public readonly int HeightPacked

Field Value

int

MipmapSize

Size in bytes of this whole mipmap.

public readonly int MipmapSize

Field Value

int

RowStride

RowStride of this mipmap (number of bytes per row).

public readonly int RowStride

Field Value

int

Width

Width of this mipmap.

public readonly int Width

Field Value

int

WidthPacked

Width of this mipmap.

public readonly int WidthPacked

Field Value

int

Methods

Equals(MipMapDescription)

Indicates whether the current object is equal to another object of the same type.

public bool Equals(MipMapDescription other)

Parameters

other MipMapDescription

An object to compare with this object.

Returns

bool

true if the current object is equal to the other parameter; otherwise, false.

Equals(object)

Determines whether the specified object is equal to the current object.

public override bool Equals(object obj)

Parameters

obj object

The object to compare with the current object.

Returns

bool

true if the specified object is equal to the current object; otherwise, false.

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

left MipMapDescription

The left.

right MipMapDescription

The right.

Returns

bool

The result of the operator.

operator !=(MipMapDescription, MipMapDescription)

Implements the !=.

public static bool operator !=(MipMapDescription left, MipMapDescription right)

Parameters

left MipMapDescription

The left.

right MipMapDescription

The right.

Returns

bool

The result of the operator.