Function

MTKModelIOVertexDescriptorFromMetal

Returns a partially converted Model I/O vertex descriptor.

Declaration

MDLVertexDescriptor * MTKModelIOVertexDescriptorFromMetal(MTLVertexDescriptor *metalDescriptor);

Parameters

metalDescriptor

A Metal vertex descriptor to convert from.

Return Value

A Model I/O vertex descriptor object.

Discussion

This function is equivalent to the MTKModelIOVertexDescriptorFromMetalWithError function, but does not report errors.

See Also

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.

MTKModelIOVertexDescriptorFromMetalWithError

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