Op Englesch liesen Editéieren

Deelen iwwer


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.

C#
[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);

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

Xamarin.Mac SDK 14
Produkt Versiounen
Xamarin.Mac SDK 14

FromTextureAsync(MDLTexture, MTKTextureLoaderOptions)

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

C#
[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);

Parameters

texture
MDLTexture

The texture to load.

options
MTKTextureLoaderOptions

Options for loading the texture data.

Returns

Attributes

Applies to

Xamarin.Mac SDK 14
Produkt Versiounen
Xamarin.Mac SDK 14