Class RenderContextBatch
The high-level renderer context batch that encapsulates multiple rendering requests within a single task (eg. optimize main view scene rendering and shadow projections at once). Contains a set of context where the main (first) one is drawing the scene, while others are utility context for shadow maps (batched int oa single drawing process). All views share the same world origin.
Inheritance
Namespace: FlaxEngine
Assembly: FlaxEngine.CSharp.dll
Syntax
[Unmanaged]
public sealed class RenderContextBatch : ValueType
Fields
Buffers
Contexts
The all render views collection for the current rendering (main view, shadow projections, etc.).
Declaration
public RenderContext[] Contexts
Field Value
|
RenderContext[]
|
EnableAsync
Enables using async tasks via Job System when performing drawing.
Declaration
public bool EnableAsync
Field Value
|
System.Boolean
|
Task
The scene rendering task that is a source of renderable objects (optional).
Declaration
public SceneRenderTask Task
Field Value
|
SceneRenderTask
|
WaitLabels
The Job System labels to wait on, after draw calls collecting.
Declaration
public long[] WaitLabels
Field Value
|
System.Int64[]
|
Properties
MainContext
Gets the main rendering context (for the main view). Returns the first context, other ones are usually used for shadow map projections.
Declaration
public ref RenderContext MainContext { get; }
Property Value
|
RenderContext
|