Skip to content

Documentation / scene / buildForwardPlusGraph

Function: buildForwardPlusGraph()

buildForwardPlusGraph(graph, ctx, renderQueue, options): RGHandle

Defined in: libs/scene/src/render/rendergraph/forward_plus_builder.ts:396

Constructs a render graph representing the forward+ pipeline.

Each step in the existing SceneRenderer._renderScene becomes a graph pass. Execute callbacks delegate to the existing rendering code, sharing a mutable FrameState.

Parameters

graph

RenderGraph

The render graph to populate.

ctx

DrawContext

The draw context for this frame.

renderQueue

RenderQueue

The culled render queue.

options

ForwardPlusOptions

Pipeline feature toggles.

Returns

RGHandle

The backbuffer handle (graph output).

Released under the MIT License.