Contents

init(rawValue:)

Creates a vertex format from a raw integer value.

Declaration

init?(rawValue: UInt)

Parameters

  • rawValue:

    The underlying integer value that represents a vertex format.

Discussion

Use the MTLVertexFormat structure’s type properties, such as MTLVertexFormat.uchar4Normalized_bgra, instead of this initializer.