Skip to content

Documentation / device / getVertexFormatSize

Function: getVertexFormatSize() ​

getVertexFormatSize(fmt): 2 | 4 | 6 | 8 | 12 | 16

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

Get byte size of specified vertex format

Parameters ​

fmt ​

VertexAttribFormat

Returns ​

2 | 4 | 6 | 8 | 12 | 16

Released under the MIT License.