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): StreamingSceneimport { streamingScene } from '@driftengine/core';Parameters
| Parameter | Type | Description |
|---|---|---|
meshes | readonly GpuDrivenMesh[] | |
transforms | Float32Array | |
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.