Bearbeiten

Freigeben über


MTKTextureLoader.FromNameAsync Method

Definition

Overloads

FromNameAsync(String, nfloat, NSDisplayGamut, NSBundle, NSDictionary)
FromNameAsync(String, nfloat, NSDisplayGamut, NSBundle, MTKTextureLoaderOptions)
FromNameAsync(String, nfloat, NSBundle, NSDictionary)
FromNameAsync(String, nfloat, NSBundle, MTKTextureLoaderOptions)

Creates a new Metal texture with the specified name and options, returning a task that provides the resulting image.

FromNameAsync(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> FromNameAsync (string name, nfloat scaleFactor, AppKit.NSDisplayGamut displayGamut, Foundation.NSBundle bundle, Foundation.NSDictionary options);
abstract member FromNameAsync : string * nfloat * AppKit.NSDisplayGamut * Foundation.NSBundle * Foundation.NSDictionary -> System.Threading.Tasks.Task<Metal.IMTLTexture>
override this.FromNameAsync : string * nfloat * AppKit.NSDisplayGamut * Foundation.NSBundle * Foundation.NSDictionary -> System.Threading.Tasks.Task<Metal.IMTLTexture>

Parameters

name
String
scaleFactor
nfloat
displayGamut
NSDisplayGamut
bundle
NSBundle
options
NSDictionary

Returns

Attributes

Applies to

FromNameAsync(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> FromNameAsync (string name, nfloat scaleFactor, AppKit.NSDisplayGamut displayGamut, Foundation.NSBundle bundle, MetalKit.MTKTextureLoaderOptions options);
member this.FromNameAsync : string * nfloat * AppKit.NSDisplayGamut * Foundation.NSBundle * MetalKit.MTKTextureLoaderOptions -> System.Threading.Tasks.Task<Metal.IMTLTexture>

Parameters

name
String
scaleFactor
nfloat
displayGamut
NSDisplayGamut
bundle
NSBundle

Returns

Attributes

Applies to

FromNameAsync(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> FromNameAsync (string name, nfloat scaleFactor, Foundation.NSBundle bundle, Foundation.NSDictionary options);
abstract member FromNameAsync : string * nfloat * Foundation.NSBundle * Foundation.NSDictionary -> System.Threading.Tasks.Task<Metal.IMTLTexture>
override this.FromNameAsync : string * nfloat * Foundation.NSBundle * Foundation.NSDictionary -> System.Threading.Tasks.Task<Metal.IMTLTexture>

Parameters

name
String
scaleFactor
nfloat
bundle
NSBundle
options
NSDictionary

Returns

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

Attributes

Applies to

FromNameAsync(String, nfloat, NSBundle, MTKTextureLoaderOptions)

Creates a new Metal texture with the specified name and options, returning a task that provides the resulting image.

[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> FromNameAsync (string name, nfloat scaleFactor, Foundation.NSBundle bundle, MetalKit.MTKTextureLoaderOptions options);
member this.FromNameAsync : string * nfloat * Foundation.NSBundle * MetalKit.MTKTextureLoaderOptions -> System.Threading.Tasks.Task<Metal.IMTLTexture>

Parameters

name
String

The asset catalog name of the image.

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