Edytuj

Udostępnij za pośrednictwem


MTKTextureLoader.FromNamesAsync Method

Definition

Overloads

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

Creates an array of new Metal texture with the specified and options, returning a task that provides the resulting array.

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[]>

Parameters

names
String[]
scaleFactor
nfloat
bundle
NSBundle
options
NSDictionary

Returns

A task that represents the asynchronous FromNames operation. The value of the TResult parameter is a System.nfloat.

Attributes

Applies to

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

Creates an array of new Metal texture with the specified and options, returning a task that provides the resulting array.

[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[]>

Parameters

names
String[]

An array of asset catalog names for images to load.

scaleFactor
nfloat

The scale factor to use.

bundle
NSBundle

The bundle that contains the image data.

options
MTKTextureLoaderOptions

Options for loading the texture data.

Returns

Attributes

Applies to

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[]>

Parameters

names
String[]
scaleFactor
nfloat
displayGamut
NSDisplayGamut
bundle
NSBundle
options
NSDictionary

Returns

Attributes

Applies to

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[]>

Parameters

names
String[]
scaleFactor
nfloat
displayGamut
NSDisplayGamut
bundle
NSBundle

Returns

Attributes

Applies to