Instance Property


The array of buffers that provide vertex data for the mesh.


var vertexBuffers: [MDLMeshBuffer] { get set }


A mesh contains vertex data organized in one of two designs: as a structure of arrays or as an array of structures. In a structure of arrays, the mesh contains multiple vertex buffers, each of which provides data for a different vertex attribute, and a single vertex is the union of data from the same index in each of the separate buffers. In an array of structures, the mesh contains a single vertex buffer, and each index in the vertex buffer contains data for all vertex attributes. Use the vertexDescriptor property to determine the structure of the mesh’s vertex 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