MTKTextureLoader.FromUrlAsync(NSUrl, MTKTextureLoaderOptions) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.