Struct DataBox
Defines a region of data organized in 3D.
public struct DataBox : IEquatable<DataBox>
- Implements
- Inherited Members
- Extension Methods
Constructors
DataBox(nint, int, int)
Defines a region of data organized in 3D.
public DataBox(nint dataPointer, int rowPitch, int slicePitch)
Parameters
dataPointernintA pointer to the data.
rowPitchintThe number of bytes per row of the data.
slicePitchintThe number of bytes per slice of the data (for a 3D Texture, a slice is a 2D image).
Fields
DataPointer
A pointer to the data.
public nint DataPointer
Field Value
Empty
An empty DataBox.
public static readonly DataBox Empty
Field Value
RowPitch
The number of bytes per row of the data.
public int RowPitch
Field Value
SlicePitch
The number of bytes per slice of the data (for a 3D Texture, a slice is a 2D image).
public int SlicePitch
Field Value
Properties
IsEmpty
Gets a value indicating whether this data box is empty.
public readonly bool IsEmpty { get; }
Property Value
Methods
Equals(DataBox)
Indicates whether the current object is equal to another object of the same type.
public readonly bool Equals(DataBox other)
Parameters
otherDataBoxAn object to compare with this object.
Returns
Equals(object)
Indicates whether this instance and a specified object are equal.
public override readonly bool Equals(object obj)
Parameters
objobjectThe object to compare with the current instance.
Returns
- bool
true if
objand this instance are the same type and represent the same value; otherwise, false.
GetHashCode()
Returns the hash code for this instance.
public override readonly int GetHashCode()
Returns
- int
A 32-bit signed integer that is the hash code for this instance.
Operators
operator ==(DataBox, DataBox)
public static bool operator ==(DataBox left, DataBox right)
Parameters
Returns
operator !=(DataBox, DataBox)
public static bool operator !=(DataBox left, DataBox right)