次の方法で共有


MTKTextureLoader.FromCGImageAsync(CGImage, MTKTextureLoaderOptions) メソッド

定義

指定した Core Graphics イメージとオプションから Metal テクスチャを非同期に作成し、結果のイメージを提供するタスクを返します。

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>

パラメーター

cgImage
CGImage

コア グラフィックス イメージ。

options
MTKTextureLoaderOptions

テクスチャ データを読み込むオプション。

戻り値

適用対象