MTKModelIOVertexFormatFromMetal(_:)
Returns a converted Model I/O vertex format.
Declaration
func MTKModelIOVertexFormatFromMetal(_ vertexFormat: MTLVertexFormat) -> MDLVertexFormatParameters
- 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 doc://com.apple.documentation/documentation/modelio/mdlvertexformat exists.