Documentation / device / getVertexBufferAttribTypeBySemantic
Function: getVertexBufferAttribTypeBySemantic()
getVertexBufferAttribTypeBySemantic(
vertexBufferType,semantic):PBPrimitiveTypeInfo
Defined in: libs/device/src/gpuobject.ts:892
Get primitive type of a vertex attribute by specified vertex semantic
Parameters
vertexBufferType
Immutable<PBStructTypeInfo>
The structure type of the vertex buffer
semantic
The vertex semantic
Returns
- The primitive type of the vertex attribute