Instance Property

format

The format of per-vertex data for the attribute.

Declaration

var format: MDLVertexFormat { get set }

Discussion

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

Accessing Data for a Vertex Attribute

var dataStart: UnsafeMutableRawPointer

The offset, in bytes, from the start of the data to where vertex attribute information begins.

var stride: Int

The stride, in bytes, between vertex information for consecutive vertices in the data.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software