Contents

setDescriptor(_:for:)

Sets the auxiliary plane descriptor for the given plane type.

Declaration

func setDescriptor(_ descriptor: MTLTensorAuxiliaryPlaneDescriptor, for plane: MTLTensorPlaneType)

Parameters

  • descriptor:

    The descriptor configuring the auxiliary plane.

  • plane:

    The plane type to associate the descriptor with.

Discussion

MTLTensorPlaneType.data is not a valid plane type for this method. The data plane is always present, and you configure it directly on MTLTensorDescriptor.

MTLTensorPlaneType.scales auxiliary planes only support MTLTensorDataType.float8ue8m0 as a data type.