Function

MTKModelIOVertexFormatFromMetal

Returns a converted Model I/O vertex format.

Declaration

MDLVertexFormat MTKModelIOVertexFormatFromMetal(MTLVertexFormat vertexFormat);

Parameters

vertexFormat

A Metal vertex format to convert from.

Return Value

A Model I/O vertex format value.

Discussion

This function returns MDLVertexFormatInvalid if no matching MDLVertexFormat exists.

See Also

Converting Between Model I/O and Metal Vertex Formats

MTKMetalVertexFormatFromModelIO

Returns a converted Metal vertex format.