VertexFormat

sg_vertex_format

The data type of a vertex component. This is used to describe the layout of input vertex data when creating a pipeline object.

NOTE that specific mapping rules exist from the CPU-side vertex formats to the vertex attribute base type in the vertex shader code (see doc header section 'ON VERTEX FORMATS').

Values

ValueMeaning
Invalid
Float
Float2
Float3
Float4
Int
Int2
Int3
Int4
Uint
Uint2
Uint3
Uint4
Byte4
Byte4n
Ubyte4
Ubyte4n
Short2
Short2n
Ushort2
Ushort2n
Short4
Short4n
Ushort4
Ushort4n
Uint10_n2
Half2
Half4
Num

Meta