Skip to content

Documentation / device / getVertexBufferAttribType

Function: getVertexBufferAttribType()

getVertexBufferAttribType(vertexBufferType, attrib): PBPrimitiveTypeInfo

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

Get primitive type of a vertex attribute by specified vertex attribute index

Parameters

vertexBufferType

Immutable<PBStructTypeInfo>

The structure type of the vertex buffer

attrib

number

Returns

PBPrimitiveTypeInfo

  • The primitive type of the vertex attribute

Released under the MIT License.