Contents

vertexFormat

The format of each vertex position in the vertex buffer property.

Declaration

var vertexFormat: MTLAttributeFormat { get set }

Discussion

Set this property to a value that represents the pixel format of the data you assign to the vertexBuffer property. The property’s default is MTLAttributeFormat.float3.

See Also

Configuring vertex data