Struct DataBox
Provides access to data organized in 3D.
public struct DataBox : IEquatable<DataBox>
- Implements
- Inherited Members
- Extension Methods
Constructors
DataBox(nint, int, int)
Initializes a new instance of the DataBox struct.
public DataBox(nint datapointer, int rowPitch, int slicePitch)
Parameters
Fields
DataPointer
Pointer to the data.
public nint DataPointer
Field Value
RowPitch
Gets the number of bytes per row.
public int RowPitch
Field Value
SlicePitch
Gets the number of bytes per slice (for a 3D texture, a slice is a 2D image)
public int SlicePitch
Field Value
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
DataBoxAn object to compare with this object.
Returns
Equals(object)
Indicates whether this instance and a specified object are equal.
public override bool Equals(object obj)
Parameters
obj
objectThe 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
Returns
- bool
The result of the operator.
operator !=(DataBox, DataBox)
Implements the operator !=.
public static bool operator !=(DataBox left, DataBox right)
Parameters
Returns
- bool
The result of the operator.