Skip to content

Documentation / scene / ensureGeometryCacheMeshBinding

Function: ensureGeometryCacheMeshBinding() ​

ensureGeometryCacheMeshBinding(meshBindings, mesh, state, errorPrefix): GeometryCacheMeshBinding

Defined in: libs/scene/src/animation/geometry_cache_utils.ts:93

Ensures the target mesh has GPU buffers compatible with the geometry cache state.

Parameters ​

meshBindings ​

WeakMap<Mesh, GeometryCacheMeshBinding>

mesh ​

Mesh

state ​

GeometryCacheState

errorPrefix ​

string

Returns ​

GeometryCacheMeshBinding

Released under the MIT License.