Edit

Share via


MTKTextureLoader.FromUrlAsync(NSUrl, MTKTextureLoaderOptions) Method

Definition

Creates a new Metal texture from the resource at the specified url, returning a task that provides the resulting texture.

public System.Threading.Tasks.Task<Metal.IMTLTexture> FromUrlAsync (Foundation.NSUrl url, MetalKit.MTKTextureLoaderOptions options);
member this.FromUrlAsync : Foundation.NSUrl * MetalKit.MTKTextureLoaderOptions -> System.Threading.Tasks.Task<Metal.IMTLTexture>

Parameters

url
NSUrl

The location of the image data to load.

options
MTKTextureLoaderOptions

Options for loading the texture data.

Returns

Applies to