Compartir a través de


MTLRenderCommandEncoder_Extensions.UseResource Método

Definición

Marca el recurso especificado como utilizable por un paso de representación.

[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

Instancia en la que opera este método.

resource
IMTLResource

Recurso que se va a usar.

usage
MTLResourceUsage

Si se va a leer, escribir o muestrear el recurso.

Atributos

Se aplica a