MTLComputeCommandEncoder_Extensions.Wait 方法

定义

在达到 之前 fence ,防止编码器执行其他 GPU 工作。

[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 10, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.TvOS, 10, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.MacOSX, 10, 13, ObjCRuntime.PlatformArchitecture.Arch64, null)]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All, null)]
public static void Wait (this Metal.IMTLComputeCommandEncoder This, Metal.IMTLFence fence);
static member Wait : Metal.IMTLComputeCommandEncoder * Metal.IMTLFence -> unit

参数

This
IMTLComputeCommandEncoder

此方法在其上运行的实例。

fence
IMTLFence
属性

适用于