Share via


IMLCustomLayer.Encode Method

Definition

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

[Foundation.Export("encodeToCommandBuffer:inputs:outputs:error:")]
[Foundation.OptionalMember]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual bool Encode(Metal.IMTLCommandBuffer commandBuffer, Metal.IMTLTexture[] inputs, Metal.IMTLTexture[] outputs, out Foundation.NSError? error);
[<Foundation.Export("encodeToCommandBuffer:inputs:outputs:error:")>]
[<Foundation.OptionalMember>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
abstract member Encode : Metal.IMTLCommandBuffer * Metal.IMTLTexture[] * Metal.IMTLTexture[] * NSError -> bool
override this.Encode : Metal.IMTLCommandBuffer * Metal.IMTLTexture[] * Metal.IMTLTexture[] * NSError -> bool

Parameters

commandBuffer
IMTLCommandBuffer
inputs
IMTLTexture[]
outputs
IMTLTexture[]
error
NSError

Returns

Attributes

Applies to