Compartilhar via


MTLRenderCommandEncoder_Extensions.UseResource Método

Definição

Marca o recurso especificado como utilizável por uma passagem de renderização.

[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

Parâmetros

This
IMTLRenderCommandEncoder

A instância na qual esse método opera.

resource
IMTLResource

O recurso a ser usado.

usage
MTLResourceUsage

Se deseja ler, gravar ou amostrar o recurso.

Atributos

Aplica-se a