Share via


MTKTextureLoader.FromTextureAsync Method

Definition

Overloads

Name Description
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.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual System.Threading.Tasks.Task<Metal.IMTLTexture> FromTextureAsync(ModelIO.MDLTexture texture, Foundation.NSDictionary? options);
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
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.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public System.Threading.Tasks.Task<Metal.IMTLTexture> FromTextureAsync(ModelIO.MDLTexture texture, MetalKit.MTKTextureLoaderOptions? options);
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
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