Renderer · function

streamingScene

A scene filled once from a list of meshes, which is the static case.

Explained in Hello world.

function streamingScene(meshes: readonly GpuDrivenMesh[], transforms: Float32Array, capacity?: StreamCapacity): StreamingScene
import { streamingScene } from '@driftengine/core';

Parameters

ParameterTypeDescription
meshesreadonly GpuDrivenMesh[]
transformsFloat32Array
capacity?StreamCapacity

In depth

With no capacity given it sizes itself to exactly what the meshes need, so a static scene allocates nothing spare and packs where buildGpuDrivenScene packed.