Function

MTKMetalVertexDescriptorFromModelIO(_:)

Returns a partially converted Metal vertex descriptor.

Declaration

func MTKMetalVertexDescriptorFromModelIO(_ modelIODescriptor: MDLVertexDescriptor) -> MTLVertexDescriptor?

Parameters

metalDescriptor

A Model I/O vertex descriptor to convert from.

Return Value

A Metal vertex descriptor object.

Discussion

This function is equivalent to the MTKMetalVertexDescriptorFromModelIOWithError(_:_:) function, but does not report errors.

See Also

Converting Between Model I/O and Metal Vertex Descriptors

func MTKModelIOVertexDescriptorFromMetal(MTLVertexDescriptor) -> MDLVertexDescriptor

Returns a partially converted Model I/O vertex descriptor.