Upravit

Sdílet prostřednictvím


MTKTextureLoader.FromTextureAsync Method

Definition

Overloads

FromTextureAsync(MDLTexture, NSDictionary)

Creates a new Metal texture from the specified texture.

FromTextureAsync(MDLTexture, MTKTextureLoaderOptions)

Creates a new Metal texture from the specified options, returning a task that provides the resulting texture.

FromTextureAsync(MDLTexture, NSDictionary)

Creates a new Metal texture from the specified texture.

[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 10, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.MacOSX, 10, 12, ObjCRuntime.PlatformArchitecture.Arch64, null)]
public virtual System.Threading.Tasks.Task<Metal.IMTLTexture> FromTextureAsync (ModelIO.MDLTexture texture, Foundation.NSDictionary options);
abstract member FromTextureAsync : ModelIO.MDLTexture * Foundation.NSDictionary -> System.Threading.Tasks.Task<Metal.IMTLTexture>
override this.FromTextureAsync : ModelIO.MDLTexture * Foundation.NSDictionary -> System.Threading.Tasks.Task<Metal.IMTLTexture>

Parameters

texture
MDLTexture

The texture to load.

options
NSDictionary

Options for loading the texture data. This parameter can be .

Returns

A task that represents the asynchronous FromTexture operation. The value of the TResult parameter is a MTKTextureLoaderCallback.

Attributes

Remarks

The FromTextureAsync method is suitable to be used with C# async by returning control to the caller with a Task representing the operation.

To be added.

Applies to

FromTextureAsync(MDLTexture, MTKTextureLoaderOptions)

Creates a new Metal texture from the specified options, returning a task that provides the resulting texture.

[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 10, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.MacOSX, 10, 12, ObjCRuntime.PlatformArchitecture.Arch64, null)]
public System.Threading.Tasks.Task<Metal.IMTLTexture> FromTextureAsync (ModelIO.MDLTexture texture, MetalKit.MTKTextureLoaderOptions options);
member this.FromTextureAsync : ModelIO.MDLTexture * MetalKit.MTKTextureLoaderOptions -> System.Threading.Tasks.Task<Metal.IMTLTexture>

Parameters

texture
MDLTexture

The texture to load.

options
MTKTextureLoaderOptions

Options for loading the texture data.

Returns

Attributes

Applies to