Compartilhar via


MTKTextureLoader.FromTexture Método

Definição

Sobrecargas

FromTexture(MDLTexture, MTKTextureLoaderOptions, MTKTextureLoaderCallback)

Cria uma nova textura metal do especificado texture.

FromTexture(MDLTexture, MTKTextureLoaderOptions, NSError)

Cria uma nova textura metal do especificado texture.

FromTexture(MDLTexture, NSDictionary, NSError)

Cria uma nova textura metal do especificado texture.

FromTexture(MDLTexture, NSDictionary, MTKTextureLoaderCallback)

Cria uma nova textura metal do especificado texture.

FromTexture(MDLTexture, MTKTextureLoaderOptions, MTKTextureLoaderCallback)

Cria uma nova textura metal do especificado texture.

[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 10, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.MacOSX, 10, 12, ObjCRuntime.PlatformArchitecture.Arch64, null)]
public void FromTexture (ModelIO.MDLTexture texture, MetalKit.MTKTextureLoaderOptions options, MetalKit.MTKTextureLoaderCallback completionHandler);
member this.FromTexture : ModelIO.MDLTexture * MetalKit.MTKTextureLoaderOptions * MetalKit.MTKTextureLoaderCallback -> unit

Parâmetros

texture
MDLTexture

A textura a ser carregada.

options
MTKTextureLoaderOptions

Opções para carregar os dados de textura.

completionHandler
MTKTextureLoaderCallback

Um manipulador a ser executado depois que a textura é carregada.

Atributos

Aplica-se a

FromTexture(MDLTexture, MTKTextureLoaderOptions, NSError)

Cria uma nova textura metal do especificado texture.

[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 10, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.MacOSX, 10, 12, ObjCRuntime.PlatformArchitecture.Arch64, null)]
public Metal.IMTLTexture FromTexture (ModelIO.MDLTexture texture, MetalKit.MTKTextureLoaderOptions options, out Foundation.NSError error);
member this.FromTexture : ModelIO.MDLTexture * MetalKit.MTKTextureLoaderOptions *  -> Metal.IMTLTexture

Parâmetros

texture
MDLTexture

A textura a ser carregada.

options
MTKTextureLoaderOptions

Opções para carregar os dados de textura.

error
NSError

Contém o erro, se ocorreu um.

Retornos

Atributos

Aplica-se a

FromTexture(MDLTexture, NSDictionary, NSError)

Cria uma nova textura metal do especificado texture.

[Foundation.Export("newTextureWithMDLTexture:options:error:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 10, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.MacOSX, 10, 12, ObjCRuntime.PlatformArchitecture.Arch64, null)]
public virtual Metal.IMTLTexture FromTexture (ModelIO.MDLTexture texture, Foundation.NSDictionary options, out Foundation.NSError error);
abstract member FromTexture : ModelIO.MDLTexture * Foundation.NSDictionary *  -> Metal.IMTLTexture
override this.FromTexture : ModelIO.MDLTexture * Foundation.NSDictionary *  -> Metal.IMTLTexture

Parâmetros

texture
MDLTexture

A textura a ser carregada.

options
NSDictionary

Opções para carregar os dados de textura

.

Esse parâmetro pode ser null.

error
NSError

Contém o erro, se ocorreu um.

Retornos

Atributos

Aplica-se a

FromTexture(MDLTexture, NSDictionary, MTKTextureLoaderCallback)

Cria uma nova textura metal do especificado texture.

[Foundation.Export("newTextureWithMDLTexture:options:completionHandler:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 10, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.MacOSX, 10, 12, ObjCRuntime.PlatformArchitecture.Arch64, null)]
public virtual void FromTexture (ModelIO.MDLTexture texture, Foundation.NSDictionary options, MetalKit.MTKTextureLoaderCallback completionHandler);
abstract member FromTexture : ModelIO.MDLTexture * Foundation.NSDictionary * MetalKit.MTKTextureLoaderCallback -> unit
override this.FromTexture : ModelIO.MDLTexture * Foundation.NSDictionary * MetalKit.MTKTextureLoaderCallback -> unit

Parâmetros

texture
MDLTexture

A textura a ser carregada.

options
NSDictionary

Opções para carregar os dados de textura

.

Esse parâmetro pode ser null.

completionHandler
MTKTextureLoaderCallback

Um manipulador a ser executado depois que a textura é carregada.

Atributos

Aplica-se a