Stride

OPEN / CLOSE
  • Features
  • Blog
  • Documentation
  • Community
(icon) Download

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

OPEN / CLOSE
  • English
  • 日本語
    Show / Hide Table of Contents

    DataBox Struct

    Namespace: Stride.Graphics
    Assembly: Stride.dll

    Provides access to data organized in 3D.

    public struct DataBox : IEquatable<DataBox>
    Name Description
    Constructors
    DataBox(IntPtr, Int32, Int32)

    Initializes a new instance of the DataBox struct.

    Fields
    DataPointer

    Pointer to the data.

    RowPitch

    Gets the number of bytes per row.

    SlicePitch

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

    Properties
    IsEmpty

    Gets a value indicating whether this instance is empty.

    Methods
    Equals(DataBox)
    Equals(Object)
    GetHashCode()
    Operators
    Equality(DataBox, DataBox)

    Implements the operator ==.

    Inequality(DataBox, DataBox)

    Implements the operator !=.

    | Improve this Doc View Source

    Constructors


    DataBox(IntPtr, Int32, Int32)

    Initializes a new instance of the DataBox struct.

    public DataBox(IntPtr datapointer, int rowPitch, int slicePitch)
    Parameters
    Type Name Description
    System.IntPtr datapointer

    The datapointer.

    System.Int32 rowPitch

    The row pitch.

    System.Int32 slicePitch

    The slice pitch.

    | Improve this Doc View Source

    Fields


    DataPointer

    Pointer to the data.

    public IntPtr DataPointer
    Field Value
    Type Description
    System.IntPtr

    RowPitch

    Gets the number of bytes per row.

    public int RowPitch
    Field Value
    Type Description
    System.Int32

    SlicePitch

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

    public int SlicePitch
    Field Value
    Type Description
    System.Int32
    | Improve this Doc View Source

    Properties


    IsEmpty

    Gets a value indicating whether this instance is empty.

    public readonly bool IsEmpty { get; }
    Property Value
    Type Description
    System.Boolean

    true if this instance is empty; otherwise, false.

    | Improve this Doc View Source

    Methods


    Equals(DataBox)

    public bool Equals(DataBox other)
    Parameters
    Type Name Description
    DataBox other
    Returns
    Type Description
    System.Boolean

    Equals(Object)

    public override bool Equals(object obj)
    Parameters
    Type Name Description
    System.Object obj
    Returns
    Type Description
    System.Boolean
    Overrides
    System.ValueType.Equals(System.Object)

    GetHashCode()

    public override int GetHashCode()
    Returns
    Type Description
    System.Int32
    Overrides
    System.ValueType.GetHashCode()
    | Improve this Doc View Source

    Operators


    Equality(DataBox, DataBox)

    Implements the operator ==.

    public static bool operator ==(DataBox left, DataBox right)
    Parameters
    Type Name Description
    DataBox left

    The left.

    DataBox right

    The right.

    Returns
    Type Description
    System.Boolean

    The result of the operator.


    Inequality(DataBox, DataBox)

    Implements the operator !=.

    public static bool operator !=(DataBox left, DataBox right)
    Parameters
    Type Name Description
    DataBox left

    The left.

    DataBox right

    The right.

    Returns
    Type Description
    System.Boolean

    The result of the operator.


    Inherited Members

    System.ValueType.ToString()

    Extension Methods

    ComponentBaseExtensions.DisposeBy<T>(T, ICollectorHolder)
    ComponentBaseExtensions.RemoveDisposeBy<T>(T, ICollectorHolder)
    • Improve this Doc
    • View Source
    In This Article

    Back to top

    Copyright © 2019-2021 .NET Foundation and Contributors
    Supported by the .NET Foundation