MTKTextureLoader.FromDataAsync(NSData, MTKTextureLoaderOptions) Method

Definition

Creates a Metal texture from the specified image data and options, returning a task that provides the resulting image.

public System.Threading.Tasks.Task<Metal.IMTLTexture> FromDataAsync (Foundation.NSData data, MetalKit.MTKTextureLoaderOptions options);
member this.FromDataAsync : Foundation.NSData * MetalKit.MTKTextureLoaderOptions -> System.Threading.Tasks.Task<Metal.IMTLTexture>

Parameters

data
NSData

The texture data.

options
MTKTextureLoaderOptions

Options for loading the texture data.

Returns

Applies to