Parameters used to created a RenderBundle.

interface RenderBundleParams {
    label?: string;
    renderPass?: RenderPass;
    useBuffer?: boolean;
    size?: number;
    useIndirectDraw?: boolean;
    renderOrder?: number;
    transparent?: boolean;
    visible?: boolean;
}

Hierarchy

Properties

label?: string

The label of the RenderBundle, sent to various GPU objects for debugging purpose.

renderPass?: RenderPass

The RenderPass used to describe the RenderBundle encoder descriptor. Default to the first added mesh output target if not set (usually the renderer main render pass or renderer post processing pass).

useBuffer?: boolean

Whether the RenderBundle should handle all its child meshes transformation matrices with a single GPUBuffer. Can greatly improve performance when dealing with a lot of moving objects, but the size parameter has to be set upon creation and should not change afterwards. Default to false.

size?: number

Fixed size (number of meshes) of the RenderBundle. Mostly useful when using the useBuffer parameter.

useIndirectDraw?: boolean

Whether this RenderBundle should create its own IndirectBuffer and add its meshes geometries to it. Default to false.

renderOrder?: number

Controls the order in which this RenderBundle should be rendered by our Scene.

transparent?: boolean

Whether this RenderBundle should be added to our Scene transparent stack (drawn after the opaque stack).

visible?: boolean

Whether this RenderBundle content should be drawn.