Contents

init(rawValue:)

Creates a data type instance from a raw integer value.

Declaration

init?(rawValue: UInt)

Parameters

  • rawValue:

    The underlying integer value that represents a data type.

Discussion

Use the MTLDataType structure’s type properties, such as MTLDataType.int, instead of this initializer.