Upravit

Sdílet prostřednictvím


MTKTextureLoader.FromUrl Method

Definition

Overloads

FromUrl(NSUrl, MTKTextureLoaderOptions, NSError)

Creates a new Metal texture from the resource at the specified url.

FromUrl(NSUrl, MTKTextureLoaderOptions, MTKTextureLoaderCallback)

Creates a new Metal texture from the resource at the specified url.

FromUrl(NSUrl, MTKTextureLoaderOptions, NSError)

Creates a new Metal texture from the resource at the specified url.

public Metal.IMTLTexture FromUrl (Foundation.NSUrl url, MetalKit.MTKTextureLoaderOptions options, out Foundation.NSError error);
member this.FromUrl : Foundation.NSUrl * MetalKit.MTKTextureLoaderOptions *  -> Metal.IMTLTexture

Parameters

url
NSUrl

The location of the image data to load.

options
MTKTextureLoaderOptions

Options for loading the texture data.

error
NSError

Contains the error, if one occurred.

Returns

Applies to

FromUrl(NSUrl, MTKTextureLoaderOptions, MTKTextureLoaderCallback)

Creates a new Metal texture from the resource at the specified url.

public void FromUrl (Foundation.NSUrl url, MetalKit.MTKTextureLoaderOptions options, MetalKit.MTKTextureLoaderCallback completionHandler);
member this.FromUrl : Foundation.NSUrl * MetalKit.MTKTextureLoaderOptions * MetalKit.MTKTextureLoaderCallback -> unit

Parameters

url
NSUrl

The location of the image data to load.

options
MTKTextureLoaderOptions

Options for loading the texture data.

completionHandler
MTKTextureLoaderCallback

A handler to run after the texture is loaded.

Applies to