Search Results for

    Show / Hide Table of Contents

    Struct DataBox

    Provides access to data organized in 3D space.

    Namespace: Evergine.Common.Graphics
    Assembly: Evergine.Common.dll
    Syntax
    public struct DataBox

    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 a byte array.

    uint rowPitch

    The row pitch.

    uint slicePitch

    The slice pitch.

    DataBox(nint, uint, uint)

    Initializes a new instance of the DataBox struct from an IntPtr.

    Declaration
    public DataBox(nint datapointer, uint rowPitch = 0, uint slicePitch = 0)
    Parameters
    Type Name Description
    nint datapointer

    The data pointer.

    uint rowPitch

    The row pitch.

    uint slicePitch

    The slice pitch.

    Fields

    DataPointer

    Pointer to the data.

    Declaration
    public nint DataPointer
    Field Value
    Type Description
    nint

    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

    true if this instance is empty; otherwise, false.

    Methods

    Dispose()

    Disposes the databox.

    Declaration
    public void Dispose()

    Extension Methods

    ReflectionHelper.GetMemberAssembly(object)
    ReflectionHelper.GetTypeName(object)
    In this article
    Back to top
    Generated by DocFX