Stride

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

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

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

    BatchBase<TDrawInfo>.ElementInfo Struct

    Namespace: Stride.Graphics
    Assembly: Stride.Graphics.dll

    The structure containing all the information required to batch one element.

    protected struct ElementInfo
    Name Description
    Constructors
    ElementInfo(Int32, Int32, in TDrawInfo, Single)
    Fields
    Depth

    The depth of the element. Used to sort the elements.

    DrawInfo

    The user draw information.

    IndexCount

    The number of indices needed to draw the element.

    VertexCount

    The number of vertex needed to draw the element.

    | Improve this Doc View Source

    Constructors


    ElementInfo(Int32, Int32, in TDrawInfo, Single)

    public ElementInfo(int vertexCount, int indexCount, in TDrawInfo drawInfo, float depth = 0F)
    Parameters
    Type Name Description
    System.Int32 vertexCount
    System.Int32 indexCount
    TDrawInfo drawInfo
    System.Single depth
    | Improve this Doc View Source

    Fields


    Depth

    The depth of the element. Used to sort the elements.

    public float Depth
    Field Value
    Type Description
    System.Single

    DrawInfo

    The user draw information.

    public TDrawInfo DrawInfo
    Field Value
    Type Description
    TDrawInfo

    IndexCount

    The number of indices needed to draw the element.

    public int IndexCount
    Field Value
    Type Description
    System.Int32

    VertexCount

    The number of vertex needed to draw the element.

    public int VertexCount
    Field Value
    Type Description
    System.Int32

    Inherited Members

    System.ValueType.Equals(System.Object)
    System.ValueType.GetHashCode()
    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