Skip to main content

Function: makeInterleavedGeometry()

makeInterleavedGeometry(geometry, options?): Geometry

Defined in: modules/engine/src/api/geometry/geometry-utils.ts:101

Packs a CPU Geometry into one interleaved vertex buffer.

The returned value is a normal Geometry whose attributes contains one packed typed array, and whose bufferLayout maps that packed buffer back to the original shader attributes. Calling this function on an already interleaved geometry with the same bufferName is idempotent and returns the original instance.

Parameters​

geometry​

Geometry & object

options?​

MakeInterleavedGeometryOptions = {}

Returns​

Geometry