Share via


IMTLComputeCommandEncoder.Wait(IMTLFence) Method

Definition

Prevents additional GPU work by the encoder until the fence is reached.

[Foundation.Export("waitForFence:")]
[Foundation.RequiredMember]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual void Wait(Metal.IMTLFence fence);
[<Foundation.Export("waitForFence:")>]
[<Foundation.RequiredMember>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
abstract member Wait : Metal.IMTLFence -> unit
override this.Wait : Metal.IMTLFence -> unit

Parameters

fence
IMTLFence

The fence to wait for.

Attributes

Applies to