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.

[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public System.Threading.Tasks.Task<Metal.IMTLTexture> FromUrlAsync(Foundation.NSUrl url, MetalKit.MTKTextureLoaderOptions? options);
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
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

Attributes

Applies to