Skip to content

Documentation / device / makeVertexBufferType

Function: makeVertexBufferType() ​

makeVertexBufferType(length, ...attributes): PBStructTypeInfo

Defined in: libs/device/src/gpuobject.ts:943

Get the structure type of a vertex buffer by specified vertex attribute formats and the length of the vertex buffer

Parameters ​

length ​

number

The length of the vertex buffer

attributes ​

...readonly VertexAttribFormat[]

The vertex attributes

Returns ​

PBStructTypeInfo

The structure type of the vertex buffer

Released under the MIT License.