Function

MTKModelIOVertexFormatFromMetal(_:)

Returns a converted Model I/O vertex format.

Declaration

func MTKModelIOVertexFormatFromMetal(_ vertexFormat: MTLVertexFormat) -> MDLVertexFormat

Parameters

vertexFormat

A Metal vertex format to convert from.

Return Value

A Model I/O vertex format value.

Discussion

This function returns MDLVertexFormat.invalid if no matching MDLVertexFormat exists.

See Also

Converting Between Model I/O and Metal Vertex Formats