Search Results for

    Show / Hide Table of Contents

    Struct RenderBatch

    Represent a batch to be rendered.

    Inherited Members
    ValueType.Equals(object)
    ValueType.GetHashCode()
    ValueType.ToString()
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    Namespace: Evergine.Framework.Graphics
    Assembly: Evergine.Framework.dll
    Syntax
    public struct RenderBatch

    Fields

    BatchIdx

    The batch index.

    Declaration
    public int BatchIdx
    Field Value
    Type Description
    int

    EndIndex

    The object end index.

    Declaration
    public int EndIndex
    Field Value
    Type Description
    int

    Id

    Batch id.

    Declaration
    public int Id
    Field Value
    Type Description
    int

    MeshProcessor

    The mesh processor.

    Declaration
    public MeshProcessor MeshProcessor
    Field Value
    Type Description
    MeshProcessor

    RenderFeature

    The render feature.

    Declaration
    public RenderFeature RenderFeature
    Field Value
    Type Description
    RenderFeature

    StartIndex

    The object start index.

    Declaration
    public int StartIndex
    Field Value
    Type Description
    int

    TemplateRenderObjectInfo

    Object template.

    Declaration
    public RenderObjectInfo TemplateRenderObjectInfo
    Field Value
    Type Description
    RenderObjectInfo

    Properties

    Count

    Gets the batch count.

    Declaration
    public int Count { get; }
    Property Value
    Type Description
    int

    Methods

    Collect(DrawContext)

    The mesh processor collect this batch.

    Declaration
    public void Collect(DrawContext drawContext)
    Parameters
    Type Name Description
    DrawContext drawContext

    The draw context.

    CollectTemplate(DrawContext)

    Collect the template render object info.

    Declaration
    public void CollectTemplate(DrawContext drawContext)
    Parameters
    Type Name Description
    DrawContext drawContext

    The draw context.

    EmitBatchToProcessor(DrawContext)

    Notify this batch to the associated mesh processor.

    Declaration
    public bool EmitBatchToProcessor(DrawContext drawContext)
    Parameters
    Type Name Description
    DrawContext drawContext

    The draw context.

    Returns
    Type Description
    bool

    True if all is OK.

    Prepare(CommandBuffer, DrawContext)

    Render this batch, using the specified commandBuffer.

    Declaration
    public void Prepare(CommandBuffer commandBuffer, DrawContext drawContext)
    Parameters
    Type Name Description
    CommandBuffer commandBuffer

    The command buffer.

    DrawContext drawContext

    The draw context.

    Render(CommandBuffer, DrawContext, int)

    Render this batch, using the specified commandBuffer.

    Declaration
    public void Render(CommandBuffer commandBuffer, DrawContext drawContext, int passId = 0)
    Parameters
    Type Name Description
    CommandBuffer commandBuffer

    The command buffer.

    DrawContext drawContext

    The draw context.

    int passId

    The pass id.

    Extension Methods

    ReflectionHelper.GetMemberAssembly(object)
    ReflectionHelper.GetTypeName(object)
    In This Article
    Back to top
    Generated by DocFX