MTKTextureLoader.FromDataAsync(NSData, 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 Metal texture from the specified image data and options, returning a task that provides the resulting image.
public System.Threading.Tasks.Task<Metal.IMTLTexture> FromDataAsync (Foundation.NSData data, MetalKit.MTKTextureLoaderOptions options);
member this.FromDataAsync : Foundation.NSData * MetalKit.MTKTextureLoaderOptions -> System.Threading.Tasks.Task<Metal.IMTLTexture>
Parameters
- data
- NSData
The texture data.
- options
- MTKTextureLoaderOptions
Options for loading the texture data.