Struct DataBox
Provides access to data organized in 3D.
Implements
Inherited Members
Namespace: Evergine.Common.Graphics
Assembly: Evergine.Common.dll
Syntax
public struct DataBox : IDisposable
Constructors
DataBox(byte[], uint, uint)
Initializes a new instance of the DataBox struct from a byte array.
Declaration
public DataBox(byte[] data, uint rowPitch = 0, uint slicePitch = 0)
Parameters
Type | Name | Description |
---|---|---|
byte[] | data | The data as byte array. |
uint | rowPitch | The row pitch. |
uint | slicePitch | The slice pitch. |
DataBox(IntPtr, uint, uint)
Initializes a new instance of the DataBox struct from a IntPtr.
Declaration
public DataBox(IntPtr datapointer, uint rowPitch = 0, uint slicePitch = 0)
Parameters
Type | Name | Description |
---|---|---|
IntPtr | datapointer | The datapointer. |
uint | rowPitch | The row pitch. |
uint | slicePitch | The slice pitch. |
Fields
DataPointer
Pointer to the data.
Declaration
public IntPtr DataPointer
Field Value
Type | Description |
---|---|
IntPtr |
RowPitch
Gets the number of bytes per row.
Declaration
public uint RowPitch
Field Value
Type | Description |
---|---|
uint |
SlicePitch
Gets the number of bytes per slice (for a 3D texture, a slice is a 2D image).
Declaration
public uint SlicePitch
Field Value
Type | Description |
---|---|
uint |
Properties
IsEmpty
Gets a value indicating whether this instance is empty.
Declaration
public bool IsEmpty { get; }
Property Value
Type | Description |
---|---|
bool |
|
Methods
Dispose()
Dispose databox.
Declaration
public void Dispose()