Instance Property


The format of per-vertex data for the attribute.


var format: MDLVertexFormat { get set }


A MDLVertexFormat value describes the number of vector components for an attribute, as well as the data type of each component, and, for special packed formats, the layout of components.

See Also

Inspecting a Vertex Attribute

var name: String

An identifier for the semantic use of the vertex attribute.

var offset: Int

The offset, in bytes, of vertex data for the attribute in a vertex buffer, relative to the start of data for each vertex.

var bufferIndex: Int

The index of the vertex buffer containing data for this attribute in a mesh’s vertexBuffers array.

var initializationValue: vector_float4

The default value for vertex data for this attribute.