DataBox Struct
Namespace: Stride.GraphicsAssembly: Stride.dll
Provides access to data organized in 3D.
public struct DataBox : IEquatable<DataBox>
| Name | Description | |
|---|---|---|
| Constructors | ||
| DataBox(IntPtr, Int32, Int32) | Initializes a new instance of the DataBox struct. |
|
| Fields | ||
| DataPointer | Pointer to the data. |
|
| RowPitch | Gets the number of bytes per row. |
|
| SlicePitch | Gets the number of bytes per slice (for a 3D texture, a slice is a 2D image) |
|
| Properties | ||
| IsEmpty | Gets a value indicating whether this instance is empty. |
|
| Methods | ||
| Equals(DataBox) | ||
| Equals(Object) | ||
| GetHashCode() | ||
| Operators | ||
| Equality(DataBox, DataBox) | Implements the operator ==. |
|
| Inequality(DataBox, DataBox) | Implements the operator !=. |
|
Constructors
DataBox(IntPtr, Int32, Int32)
Initializes a new instance of the DataBox struct.
public DataBox(IntPtr datapointer, int rowPitch, int slicePitch)
Parameters
| Type | Name | Description |
|---|---|---|
| System.IntPtr | datapointer | The datapointer. |
| System.Int32 | rowPitch | The row pitch. |
| System.Int32 | slicePitch | The slice pitch. |
Fields
DataPointer
Pointer to the data.
public IntPtr DataPointer
Field Value
| Type | Description |
|---|---|
| System.IntPtr |
RowPitch
Gets the number of bytes per row.
public int RowPitch
Field Value
| Type | Description |
|---|---|
| System.Int32 |
SlicePitch
Gets the number of bytes per slice (for a 3D texture, a slice is a 2D image)
public int SlicePitch
Field Value
| Type | Description |
|---|---|
| System.Int32 |
Properties
IsEmpty
Gets a value indicating whether this instance is empty.
public readonly bool IsEmpty { get; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
|
Methods
Equals(DataBox)
public bool Equals(DataBox other)
Parameters
| Type | Name | Description |
|---|---|---|
| DataBox | 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(DataBox, DataBox)
Implements the operator ==.
public static bool operator ==(DataBox left, DataBox right)
Parameters
| Type | Name | Description |
|---|---|---|
| DataBox | left | The left. |
| DataBox | right | The right. |
Returns
| Type | Description |
|---|---|
| System.Boolean | The result of the operator. |
Inequality(DataBox, DataBox)
Implements the operator !=.
public static bool operator !=(DataBox left, DataBox right)
Parameters
| Type | Name | Description |
|---|---|---|
| DataBox | left | The left. |
| DataBox | right | The right. |
Returns
| Type | Description |
|---|---|
| System.Boolean | The result of the operator. |