MTKTextureLoader.FromCGImageAsync(CGImage, 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.
Asynchronously creates a Metal texture from the specified Core Graphics image and options, and returns a task that provides the resulting image.
public System.Threading.Tasks.Task<Metal.IMTLTexture> FromCGImageAsync (CoreGraphics.CGImage cgImage, MetalKit.MTKTextureLoaderOptions options);
member this.FromCGImageAsync : CoreGraphics.CGImage * MetalKit.MTKTextureLoaderOptions -> System.Threading.Tasks.Task<Metal.IMTLTexture>
Parameters
- cgImage
- CGImage
A Core Graphics image.
- options
- MTKTextureLoaderOptions
Options for loading the texture data.