Skip to content

Documentation / scene / CompositorBuildLayerOptions

Interface: CompositorBuildLayerOptions

Defined in: libs/scene/src/posteffect/compositor.ts:16

Options for building a post effect layer as render graph passes.

Properties

graph

graph: RenderGraph

Defined in: libs/scene/src/posteffect/compositor.ts:18

The render graph being built.


ctx

ctx: DrawContext

Defined in: libs/scene/src/posteffect/compositor.ts:20

Frame draw context.


layer

layer: PostEffectLayer

Defined in: libs/scene/src/posteffect/compositor.ts:22

The layer to build.


blackboard

blackboard: RGBlackboard

Defined in: libs/scene/src/posteffect/compositor.ts:24

Named frame resources.


input

input: RGHandle

Defined in: libs/scene/src/posteffect/compositor.ts:26

Chain input color handle.


finalOutput?

optional finalOutput?: object

Defined in: libs/scene/src/posteffect/compositor.ts:33

Direct final target for the last effect of the chain, or null to always end the chain in an intermediate texture. Pass the imported backbuffer handle together with isScreen=false when rendering into a framebuffer, or isScreen=true when the final target is the device default framebuffer.

handle

handle: RGHandle

isScreen

isScreen: boolean


inputResidesInFinalTarget?

optional inputResidesInFinalTarget?: boolean

Defined in: libs/scene/src/posteffect/compositor.ts:40

True when the chain input physically resides in the final target (final framebuffer used as scene intermediate). An effect whose input is the final target must never direct-write it — sampling and rendering the same texture in one pass is a feedback loop.


sceneDepthAttachment?

optional sceneDepthAttachment?: unknown

Defined in: libs/scene/src/posteffect/compositor.ts:45

Depth attachment for intermediate effect outputs that request one: either a graph texture handle or a backend depth texture.


dependencies?

optional dependencies?: RGHandle[]

Defined in: libs/scene/src/posteffect/compositor.ts:47

Ordering/lifetime dependencies declared by every effect pass.


historyReads?

optional historyReads?: PostEffectHistoryRead[]

Defined in: libs/scene/src/posteffect/compositor.ts:49

History bindings kept in a read scope while effects execute.


history?

optional history?: HistoryResourceManager<Texture2D<unknown>>

Defined in: libs/scene/src/posteffect/compositor.ts:51

Cross-frame history resource manager.

Released under the MIT License.