MTLRenderCommandEncoder_Extensions.UseResource 方法

定义

将指定的资源标记为可由呈现通道使用。

[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.MacOSX, 10, 13, ObjCRuntime.PlatformArchitecture.Arch64, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 11, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.TvOS, 11, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All, null)]
public static void UseResource (this Metal.IMTLRenderCommandEncoder This, Metal.IMTLResource resource, Metal.MTLResourceUsage usage);
static member UseResource : Metal.IMTLRenderCommandEncoder * Metal.IMTLResource * Metal.MTLResourceUsage -> unit

参数

This
IMTLRenderCommandEncoder

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

resource
IMTLResource

要使用的资源。

usage
MTLResourceUsage

是读取、写入还是采样资源。

属性

适用于