Instance Property


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


@property(nonatomic, readwrite, retain) NSArray<id<MDLMeshBuffer>> *vertexBuffers;


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.

See Also

Working with Vertex Data


The minimum region entirely enclosing the mesh’s vertex positions, expressed in the model coordinate system of the mesh.


The array of submeshes to be used in rendering the mesh.


The number of vertices in the mesh.


A description of the format and layout of the mesh’s vertex buffers.

- addAttributeWithName:format:

Adds a vertex attribute to the mesh and creates a new, empty corresponding vertex buffer.

- vertexAttributeDataForAttributeNamed:

Returns the vertex data for the specified attribute.