Search Results for

    Show / Hide Table of Contents

    Class InstancingBatchRenderUnit

    This represents an instancing batch render unit.

    Inheritance
    object
    RenderUnit
    MeshRenderUnit
    InstancingBatchRenderUnit
    Inherited Members
    MeshRenderUnit.Info
    MeshRenderUnit.BoundingBox
    MeshRenderUnit.InstanceCount
    MeshRenderUnit.Collect(DrawContext)
    Namespace: Evergine.Framework.Graphics.Instancing
    Assembly: Evergine.Framework.dll
    Syntax
    public class InstancingBatchRenderUnit : MeshRenderUnit

    Constructors

    InstancingBatchRenderUnit(RenderMeshInfo, uint)

    Initializes a new instance of the InstancingBatchRenderUnit class.

    Declaration
    public InstancingBatchRenderUnit(RenderMeshInfo info, uint instanceCount = 1)
    Parameters
    Type Name Description
    RenderMeshInfo info

    The mesh information.

    uint instanceCount

    The number of instances.

    InstancingBatchRenderUnit(uint)

    Initializes a new instance of the InstancingBatchRenderUnit class.

    Declaration
    public InstancingBatchRenderUnit(uint instanceCount = 1)
    Parameters
    Type Name Description
    uint instanceCount

    The number of instances.

    Fields

    InstancingWorld

    The instance world array.

    Declaration
    public Matrix4x4[] InstancingWorld
    Field Value
    Type Description
    Matrix4x4[]

    InstancingWorldOffset

    The instance's world offset.

    Declaration
    public int InstancingWorldOffset
    Field Value
    Type Description
    int

    Methods

    PassIsAvailable(DrawContext, int)

    Returns if the pass is available in this render unit.

    Declaration
    public override bool PassIsAvailable(DrawContext drawContext, int passId)
    Parameters
    Type Name Description
    DrawContext drawContext

    The DrawContext.

    int passId

    The Pass Id.

    Returns
    Type Description
    bool

    True if the pass is available.

    Overrides
    MeshRenderUnit.PassIsAvailable(DrawContext, int)

    Prepare(CommandBuffer, DrawContext)

    Prepares this unit to be rendered.

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

    The command buffer.

    DrawContext drawContext

    The draw context.

    Overrides
    MeshRenderUnit.Prepare(CommandBuffer, DrawContext)

    Render(CommandBuffer, DrawContext, int)

    Renders an element using the specified command buffer.

    Declaration
    public override 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.

    Overrides
    MeshRenderUnit.Render(CommandBuffer, DrawContext, int)

    Extension Methods

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