Skip to content

Documentation / device / getVertexAttributeFormat

Function: getVertexAttributeFormat()

getVertexAttributeFormat(fmt): "u8norm" | "i8norm" | "u16" | "u16norm" | "i16" | "i16norm" | "u32" | "i32" | "f16" | "f32"

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

Get vertex attribute type of specified vertex format

Parameters

fmt

VertexAttribFormat

The vertex format

Returns

"u8norm" | "i8norm" | "u16" | "u16norm" | "i16" | "i16norm" | "u32" | "i32" | "f16" | "f32"

Vertex attribute type, possible values are 'f32', 'f16', 'i32', 'u32', 'i16', 'u16', 'i8norm', 'u8norm', 'i16norm', 'u16norm'

Released under the MIT License.