Renderer · function
buildGpuDrivenScene
Pack a scene.
Explained in Hello world.
function buildGpuDrivenScene(meshes: readonly GpuDrivenMesh[]): GpuDrivenSceneimport { buildGpuDrivenScene } from '@driftengine/core';Parameters
| Parameter | Type | Description |
|---|---|---|
meshes | readonly GpuDrivenMesh[] |
In depth
A mesh with no clusters still takes its slot, in vertexBase and in the mesh numbering the
clusters carry. meshOf indexes the caller's transform array, so dropping an empty mesh shifts
every mesh after it and each of their clusters draws with somebody else's matrix — the same
reasoning packClusters already gives, one level up.