Stride

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

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

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

    InstancingRenderFeature Class

    Namespace: Stride.Rendering
    Assembly: Stride.Rendering.dll
    System.Object → DisposeBase → ComponentBase → RenderFeature → SubRenderFeature → InstancingRenderFeature
    Derived from InstancingRenderFeature:

    public class InstancingRenderFeature : SubRenderFeature, IComponent, IReferencable, ICollectorHolder, IGraphicsRendererCore, IDisposable
    Name Description
    Fields
    ModelToInstancingMap
    Methods
    Extract()

    Extract data from entities, should be as fast as possible to not block simulation loop. It should be mostly copies, and the actual processing should be part of Prepare().

    InitializeCore()

    Initializes this instance. Query for specific cbuffer (either new one, like PerMaterial, or parts of an existing one, like PerObject=>Skinning)

    Prepare(RenderDrawContext)

    Performs most of the work (computation and resource preparation). Later game simulation might be running during that step.

    PrepareEffectPermutations(RenderDrawContext)
    | Improve this Doc View Source

    Fields


    ModelToInstancingMap

    public static readonly PropertyKey<Dictionary<RenderModel, RenderInstancing>> ModelToInstancingMap
    Field Value
    Type Description
    PropertyKey<System.Collections.Generic.Dictionary<RenderModel, RenderInstancing>>
    | Improve this Doc View Source

    Methods


    Extract()

    Extract data from entities, should be as fast as possible to not block simulation loop. It should be mostly copies, and the actual processing should be part of Prepare().

    public override void Extract()
    Overrides
    RenderFeature.Extract()

    InitializeCore()

    Initializes this instance. Query for specific cbuffer (either new one, like PerMaterial, or parts of an existing one, like PerObject=>Skinning)

    protected override void InitializeCore()
    Overrides
    RenderFeature.InitializeCore()

    Prepare(RenderDrawContext)

    Performs most of the work (computation and resource preparation). Later game simulation might be running during that step.

    public override void Prepare(RenderDrawContext context)
    Parameters
    Type Name Description
    RenderDrawContext context
    Overrides
    RenderFeature.Prepare(RenderDrawContext)

    PrepareEffectPermutations(RenderDrawContext)

    public override void PrepareEffectPermutations(RenderDrawContext context)
    Parameters
    Type Name Description
    RenderDrawContext context
    Overrides
    RenderFeature.PrepareEffectPermutations(RenderDrawContext)

    Inherited Members

    SubRenderFeature.RootRenderFeature
    SubRenderFeature.ProcessPipelineState(RenderContext, RenderNodeReference, RenderNode, RenderObject, PipelineStateDescription)
    RenderFeature.Context
    RenderFeature.RenderSystem
    RenderFeature.Initialized
    RenderFeature.Enabled
    RenderFeature.Initialize(RenderContext)
    RenderFeature.Unload()
    RenderFeature.Destroy()
    RenderFeature.Collect()
    RenderFeature.Draw(RenderDrawContext, RenderView, RenderViewStage)
    RenderFeature.Draw(RenderDrawContext, RenderView, RenderViewStage, Int32, Int32)
    RenderFeature.Flush(RenderDrawContext)
    RenderFeature.OnRenderSystemChanged()
    ComponentBase.Tags
    ComponentBase.Name
    ComponentBase.ICollectorHolder.Collector
    ComponentBase.OnNameChanged()
    ComponentBase.ToString()
    DisposeBase.Dispose()
    DisposeBase.IsDisposed
    DisposeBase.IReferencable.ReferenceCount
    DisposeBase.IReferencable.AddReference()
    DisposeBase.IReferencable.Release()
    DisposeBase.OnAddReference()
    DisposeBase.OnReleaseReference()

    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