MipMapDescription Class
Namespace: Stride.GraphicsAssembly: Stride.dll
Describes a mipmap.
public class MipMapDescription : IEquatable<MipMapDescription>
Name | Description | |
---|---|---|
Constructors | ||
MipMapDescription(Int32, Int32, Int32, Int32, Int32, Int32, Int32) | Initializes a new instance of the MipMapDescription class. |
|
Fields | ||
Depth | Depth of this mipmap. |
|
DepthStride | DepthStride of this mipmap (number of bytes per depth slice). |
|
Height | Height of this mipmap. |
|
HeightPacked | Height of this mipmap. |
|
MipmapSize | Size in bytes of this whole mipmap. |
|
RowStride | RowStride of this mipmap (number of bytes per row). |
|
Width | Width of this mipmap. |
|
WidthPacked | Width of this mipmap. |
|
Methods | ||
Equals(MipMapDescription) | ||
Equals(Object) | ||
GetHashCode() | ||
Operators | ||
Equality(MipMapDescription, MipMapDescription) | Implements the ==. |
|
Inequality(MipMapDescription, MipMapDescription) | Implements the !=. |
Constructors
MipMapDescription(Int32, Int32, Int32, Int32, Int32, Int32, Int32)
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
Type | Name | Description |
---|---|---|
System.Int32 | width | The width. |
System.Int32 | height | The height. |
System.Int32 | depth | The depth. |
System.Int32 | rowStride | The row stride. |
System.Int32 | depthStride | The depth stride. |
System.Int32 | widthPacked | |
System.Int32 | heightPacked |
Fields
Depth
Depth of this mipmap.
public readonly int Depth
Field Value
Type | Description |
---|---|
System.Int32 |
DepthStride
DepthStride of this mipmap (number of bytes per depth slice).
public readonly int DepthStride
Field Value
Type | Description |
---|---|
System.Int32 |
Height
Height of this mipmap.
public readonly int Height
Field Value
Type | Description |
---|---|
System.Int32 |
HeightPacked
Height of this mipmap.
public readonly int HeightPacked
Field Value
Type | Description |
---|---|
System.Int32 |
MipmapSize
Size in bytes of this whole mipmap.
public readonly int MipmapSize
Field Value
Type | Description |
---|---|
System.Int32 |
RowStride
RowStride of this mipmap (number of bytes per row).
public readonly int RowStride
Field Value
Type | Description |
---|---|
System.Int32 |
Width
Width of this mipmap.
public readonly int Width
Field Value
Type | Description |
---|---|
System.Int32 |
WidthPacked
Width of this mipmap.
public readonly int WidthPacked
Field Value
Type | Description |
---|---|
System.Int32 |
Methods
Equals(MipMapDescription)
public bool Equals(MipMapDescription other)
Parameters
Type | Name | Description |
---|---|---|
MipMapDescription | other |
Returns
Type | Description |
---|---|
System.Boolean |
Equals(Object)
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj |
Returns
Type | Description |
---|---|
System.Boolean |
Overrides
GetHashCode()
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 |
Overrides
Operators
Equality(MipMapDescription, MipMapDescription)
Implements the ==.
public static bool operator ==(MipMapDescription left, MipMapDescription right)
Parameters
Type | Name | Description |
---|---|---|
MipMapDescription | left | The left. |
MipMapDescription | right | The right. |
Returns
Type | Description |
---|---|
System.Boolean | The result of the operator. |
Inequality(MipMapDescription, MipMapDescription)
Implements the !=.
public static bool operator !=(MipMapDescription left, MipMapDescription right)
Parameters
Type | Name | Description |
---|---|---|
MipMapDescription | left | The left. |
MipMapDescription | right | The right. |
Returns
Type | Description |
---|---|
System.Boolean | The result of the operator. |