Instance Property

vertexDescriptor

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

Declaration

@property(nonatomic, readwrite, copy) MDLVertexDescriptor *vertexDescriptor;

Discussion

Read this property to determine the vertex data format to be used in rendering the mesh. By writing a new value to this property, you can restructure the vertex data in the mesh.

See Also

Working with Vertex Data

boundingBox

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

submeshes

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

vertexBuffers

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

vertexCount

The number of vertices in the mesh.

- 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.