API

Function resizeSharedMeshGeometry

  • Replace one shared geometry allocation and keep every mesh in meshes sharing the replacement. Supply distinct, live meshes referencing the same owned, tightly-packed MeshGPU object. Owners omitted from the list keep their original geometry.

    Parameters

    • engine: EngineContext
    • meshes: readonly Mesh[]
    • positions: Float32Array
    • normals: Float32Array
    • indices: Uint32Array
    • Optionaluvs: Float32Array<ArrayBufferLike>
    • Optionaluvs2: Float32Array<ArrayBufferLike>
    • Optionaltangents: Float32Array<ArrayBufferLike>
    • Optionalcolors: Float32Array<ArrayBufferLike>

    Returns void