Skip to content

Documentation / device / getVertexBufferAttribTypeBySemantic

Function: getVertexBufferAttribTypeBySemantic() ​

getVertexBufferAttribTypeBySemantic(vertexBufferType, semantic): PBPrimitiveTypeInfo

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

Get primitive type of a vertex attribute by specified vertex semantic

Parameters ​

vertexBufferType ​

Immutable<PBStructTypeInfo>

The structure type of the vertex buffer

semantic ​

VertexSemantic

The vertex semantic

Returns ​

PBPrimitiveTypeInfo

  • The primitive type of the vertex attribute

Released under the MIT License.