다음을 통해 공유


MTKTextureLoader.FromCGImageAsync(CGImage, MTKTextureLoaderOptions) 메서드

정의

지정된 Core Graphics 이미지 및 옵션에서 금속 텍스처를 비동기적으로 만들고 결과 이미지를 제공하는 작업을 반환합니다.

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

텍스처 데이터를 로드하는 옵션입니다.

반환

적용 대상