Function

MTKMetalVertexFormatFromModelIO

Returns a converted Metal vertex format.

Declaration

MTLVertexFormat MTKMetalVertexFormatFromModelIO(MDLVertexFormat vertexFormat);

Parameters

vertexFormat

A Model I/O vertex format to convert from.

Return Value

A Metal vertex format value.

Discussion

This function returns MTLVertexFormatInvalid if no matching MTLVertexFormat exists.

See Also

Converting Between Model I/O and Metal Vertex Formats

MTKModelIOVertexFormatFromMetal

Returns a converted Model I/O vertex format.