共用方式為


MTKTextureLoader.FromNamesAsync 方法

定義

多載

FromNamesAsync(String[], nfloat, NSBundle, NSDictionary)
FromNamesAsync(String[], nfloat, NSBundle, MTKTextureLoaderOptions)

使用指定的 和 選項建立新 Metal 紋理的陣列,並傳回提供結果陣列的工作。

FromNamesAsync(String[], nfloat, NSDisplayGamut, NSBundle, NSDictionary)
FromNamesAsync(String[], nfloat, NSDisplayGamut, NSBundle, MTKTextureLoaderOptions)

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

傳回

表示非同步 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

載入紋理資料的選項。

傳回

屬性

適用於

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

傳回

屬性

適用於

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

傳回

屬性

適用於