Conversion Functions

Convert between Metal and Model I/O vertex representations.

Topics

Converting Between Model I/O and Metal Vertex Descriptors

MTKMetalVertexDescriptorFromModelIO

Returns a partially converted Metal vertex descriptor.

MTKMetalVertexDescriptorFromModelIOWithError

Returns a partially converted Metal vertex descriptor, reporting any error that occurs.

MTKModelIOVertexDescriptorFromMetal

Returns a partially converted Model I/O vertex descriptor.

MTKModelIOVertexDescriptorFromMetalWithError

Returns a partially converted Model I/O vertex descriptor, reporting any error that occurs.

Converting Between Model I/O and Metal Vertex Formats

MTKMetalVertexFormatFromModelIO

Returns a converted Metal vertex format.

MTKModelIOVertexFormatFromMetal

Returns a converted Model I/O vertex format.

See Also

Model Handling

MTKMesh

A container for the vertex data of a Model I/O mesh, suitable for use in a Metal app.

MTKMeshBuffer

A buffer that backs the vertex data of a Model I/O mesh, suitable for use in a Metal app.

MTKMeshBufferAllocator

An interface for allocating a MetalKit buffer that backs the vertex data of a Model I/O mesh, suitable for use in a Metal app.

MTKSubmesh

A container for the index data of a Model I/O submesh, suitable for use in a Metal app.

Model Errors

Learn about errors thrown by model handling methods.