Function

MTKMetalVertexFormatFromModelIO(_:)

Returns a converted Metal vertex format.

Declaration

func MTKMetalVertexFormatFromModelIO(_ vertexFormat: MDLVertexFormat) -> MTLVertexFormat

Parameters

vertexFormat

A Model I/O vertex format to convert from.

Return Value

A Metal vertex format value.

Discussion

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

See Also

Converting Between Model I/O and Metal Vertex Formats