Instance Method


Creates a new vertex descriptor by performing a deep copy of the specified vertex descriptor.


- (instancetype)initWithVertexDescriptor:(MDLVertexDescriptor *)vertexDescriptor;



The vertex descriptor from which to copy information.

Return Value

A new vertex descriptor that is an indpendent copy of the specified vertex descriptor.


A vertex descriptor does not own vertex data—vertex data belongs to the vertexBuffers property of the mesh that owns a vertex descriptor—so this method does not copy vertex data. A call to the copy or copyWithZone: method uses this initializer to produce a fully independent copy of the original instance.

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