Skip to content

Documentation / scene / PersistentSceneQueue

Interface: PersistentSceneQueue

Defined in: libs/scene/src/render/rendergraph/scene_render_context.ts:100

Caller-owned render queue that can be reused across frames.

Properties

queue

readonly queue: RenderQueue

Defined in: libs/scene/src/render/rendergraph/scene_render_context.ts:102

Renderable queue, valid after PersistentSceneQueue.finalize.

Methods

clear()

clear(): this

Defined in: libs/scene/src/render/rendergraph/scene_render_context.ts:105

Clear the queue for rebuilding.

Returns

this


add()

add(drawable, camera): this

Defined in: libs/scene/src/render/rendergraph/scene_render_context.ts:108

Add a drawable.

Parameters

drawable

Drawable

camera

Camera

Returns

this


finalize()

finalize(camera, createRenderBundles?): this

Defined in: libs/scene/src/render/rendergraph/scene_render_context.ts:111

Finalize batching, optionally creating reusable render bundles.

Parameters

camera

Camera

createRenderBundles?

boolean

Returns

this


dispose()

dispose(): void

Defined in: libs/scene/src/render/rendergraph/scene_render_context.ts:114

Release the queue and its private allocator's GPU resources.

Returns

void

Released under the MIT License.