Table of Contents

Class InstancingRenderFeature

Namespace
Stride.Rendering
Assembly
Stride.Rendering.dll
public class InstancingRenderFeature : SubRenderFeature, IComponent, IReferencable, ICollectorHolder, IGraphicsRendererCore, IDisposable
Inheritance
InstancingRenderFeature
Implements
Inherited Members
Extension Methods

Fields

ModelToInstancingMap

public static readonly PropertyKey<Dictionary<RenderModel, RenderInstancing>> ModelToInstancingMap

Field Value

PropertyKey<Dictionary<RenderModel, RenderInstancing>>

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()

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()

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

context RenderDrawContext

PrepareEffectPermutations(RenderDrawContext)

Perform effect permutations, before Prepare(RenderDrawContext).

public override void PrepareEffectPermutations(RenderDrawContext context)

Parameters

context RenderDrawContext