MTKTextureLoader.FromNamesAsync 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
FromNamesAsync(String[], nfloat, NSBundle, NSDictionary)
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 10, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.MacOSX, 10, 12, ObjCRuntime.PlatformArchitecture.Arch64, null)]
public virtual System.Threading.Tasks.Task<Metal.IMTLTexture[]> FromNamesAsync (string[] names, nfloat scaleFactor, Foundation.NSBundle bundle, Foundation.NSDictionary options);
abstract member FromNamesAsync : string[] * nfloat * Foundation.NSBundle * Foundation.NSDictionary -> System.Threading.Tasks.Task<Metal.IMTLTexture[]>
override this.FromNamesAsync : string[] * nfloat * Foundation.NSBundle * Foundation.NSDictionary -> System.Threading.Tasks.Task<Metal.IMTLTexture[]>
參數
- names
- String[]
- scaleFactor
- nfloat
- bundle
- NSBundle
- options
- NSDictionary
傳回
Task<IMTLTexture[]>
表示非同步 FromNames 作業的工作。 TResult 參數的值是 System.nfloat。
- 屬性
適用於
FromNamesAsync(String[], nfloat, NSBundle, MTKTextureLoaderOptions)
使用指定的 和 選項建立新 Metal 紋理的陣列,並傳回提供結果陣列的工作。
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 10, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.MacOSX, 10, 12, ObjCRuntime.PlatformArchitecture.Arch64, null)]
public System.Threading.Tasks.Task<Metal.IMTLTexture[]> FromNamesAsync (string[] names, nfloat scaleFactor, Foundation.NSBundle bundle, MetalKit.MTKTextureLoaderOptions options);
member this.FromNamesAsync : string[] * nfloat * Foundation.NSBundle * MetalKit.MTKTextureLoaderOptions -> System.Threading.Tasks.Task<Metal.IMTLTexture[]>
參數
- names
- String[]
要載入之影像的資產目錄名稱陣列。
- scaleFactor
- nfloat
要使用的縮放比例。
- bundle
- NSBundle
包含影像資料的套件組合。
- options
- MTKTextureLoaderOptions
載入紋理資料的選項。
傳回
Task<IMTLTexture[]>
- 屬性
適用於
FromNamesAsync(String[], nfloat, NSDisplayGamut, NSBundle, NSDictionary)
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.MacOSX, 10, 12, ObjCRuntime.PlatformArchitecture.Arch64, null)]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.iOS, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual System.Threading.Tasks.Task<Metal.IMTLTexture[]> FromNamesAsync (string[] names, nfloat scaleFactor, AppKit.NSDisplayGamut displayGamut, Foundation.NSBundle bundle, Foundation.NSDictionary options);
abstract member FromNamesAsync : string[] * nfloat * AppKit.NSDisplayGamut * Foundation.NSBundle * Foundation.NSDictionary -> System.Threading.Tasks.Task<Metal.IMTLTexture[]>
override this.FromNamesAsync : string[] * nfloat * AppKit.NSDisplayGamut * Foundation.NSBundle * Foundation.NSDictionary -> System.Threading.Tasks.Task<Metal.IMTLTexture[]>
參數
- names
- String[]
- scaleFactor
- nfloat
- displayGamut
- NSDisplayGamut
- bundle
- NSBundle
- options
- NSDictionary
傳回
Task<IMTLTexture[]>
- 屬性
適用於
FromNamesAsync(String[], nfloat, NSDisplayGamut, NSBundle, MTKTextureLoaderOptions)
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.MacOSX, 10, 12, ObjCRuntime.PlatformArchitecture.Arch64, null)]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.iOS, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All, null)]
public System.Threading.Tasks.Task<Metal.IMTLTexture[]> FromNamesAsync (string[] names, nfloat scaleFactor, AppKit.NSDisplayGamut displayGamut, Foundation.NSBundle bundle, MetalKit.MTKTextureLoaderOptions options);
member this.FromNamesAsync : string[] * nfloat * AppKit.NSDisplayGamut * Foundation.NSBundle * MetalKit.MTKTextureLoaderOptions -> System.Threading.Tasks.Task<Metal.IMTLTexture[]>
參數
- names
- String[]
- scaleFactor
- nfloat
- displayGamut
- NSDisplayGamut
- bundle
- NSBundle
- options
- MTKTextureLoaderOptions
傳回
Task<IMTLTexture[]>
- 屬性