Skip to content

Documentation / device / getVertexAttribFormat

Function: getVertexAttribFormat()

getVertexAttribFormat(semantic, type, count): VertexAttribFormat

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

Get vertex format by semantic and component type and component count

Parameters

semantic

VertexSemantic

The vertex semantic

type

DataType

Data type of vertex component

count

number

The count of vertex components

Returns

VertexAttribFormat

Vertex format

Released under the MIT License.