MTKTextureLoader.FromUrl 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.
Overloads
FromUrl(NSUrl, MTKTextureLoaderOptions, NSError) |
Creates a new Metal texture from the resource at the specified |
FromUrl(NSUrl, MTKTextureLoaderOptions, MTKTextureLoaderCallback) |
Creates a new Metal texture from the resource at the specified |
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.