Table of Contents

Struct DataBox

Namespace
Stride.Graphics
Assembly
Stride.dll

Provides access to data organized in 3D.

public struct DataBox : IEquatable<DataBox>
Implements
Inherited Members

Constructors

DataBox(IntPtr, int, int)

Initializes a new instance of the DataBox struct.

public DataBox(IntPtr datapointer, int rowPitch, int slicePitch)

Parameters

datapointer IntPtr

The datapointer.

rowPitch int

The row pitch.

slicePitch int

The slice pitch.

Fields

DataPointer

Pointer to the data.

public IntPtr DataPointer

Field Value

IntPtr

RowPitch

Gets the number of bytes per row.

public int RowPitch

Field Value

int

SlicePitch

Gets the number of bytes per slice (for a 3D texture, a slice is a 2D image)

public int SlicePitch

Field Value

int

Properties

IsEmpty

Gets a value indicating whether this instance is empty.

public bool IsEmpty { get; }

Property Value

bool

true if this instance is empty; otherwise, false.

Methods

Equals(DataBox)

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

public bool Equals(DataBox other)

Parameters

other DataBox

An object to compare with this object.

Returns

bool

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

Equals(object)

Indicates whether this instance and a specified object are equal.

public override bool Equals(object obj)

Parameters

obj object

The object to compare with the current instance.

Returns

bool

true if obj and this instance are the same type and represent the same value; otherwise, false.

GetHashCode()

Returns the hash code for this instance.

public override int GetHashCode()

Returns

int

A 32-bit signed integer that is the hash code for this instance.

Operators

operator ==(DataBox, DataBox)

Implements the operator ==.

public static bool operator ==(DataBox left, DataBox right)

Parameters

left DataBox

The left.

right DataBox

The right.

Returns

bool

The result of the operator.

operator !=(DataBox, DataBox)

Implements the operator !=.

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

Parameters

left DataBox

The left.

right DataBox

The right.

Returns

bool

The result of the operator.