Skip to content

Documentation / device / getVertexFormatComponentCount

Function: getVertexFormatComponentCount()

getVertexFormatComponentCount(fmt): 1 | 2 | 3 | 4

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

Get number of components of specified vertex format

Parameters

fmt

VertexAttribFormat

Returns

1 | 2 | 3 | 4

Released under the MIT License.