Contents

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 doc://com.apple.documentation/documentation/modelio/mdlvertexformat exists.

See Also

Converting Between Model I/O and Metal Vertex Formats