Share via


MLCustomLayer_Extensions Class

Definition

Extension methods to the IMLCustomLayer interface to support all the methods from the MLCustomLayer protocol.

public static class MLCustomLayer_Extensions
type MLCustomLayer_Extensions = class
Inheritance
MLCustomLayer_Extensions

Remarks

The extension methods for IMLCustomLayer interface allow developers to treat instances of the interface as having all the optional methods of the original MLCustomLayer protocol. Since the interface only contains the required members, these extension methods allow developers to call the optional members of the protocol.

Methods

Name Description
Encode(IMLCustomLayer, IMTLCommandBuffer, IMTLTexture[], IMTLTexture[], NSError)

Sets outputs by applying inputs to the function described by commandBuffer.

Applies to