Edit

Share via


MTKTextureLoader.FromTexture Method

Definition

Overloads

FromTexture(MDLTexture, MTKTextureLoaderOptions, MTKTextureLoaderCallback)

Creates a new Metal texture from the specified texture.

FromTexture(MDLTexture, MTKTextureLoaderOptions, NSError)

Creates a new Metal texture from the specified texture.

FromTexture(MDLTexture, NSDictionary, NSError)

Creates a new Metal texture from the specified texture.

FromTexture(MDLTexture, NSDictionary, MTKTextureLoaderCallback)

Creates a new Metal texture from the specified texture.

FromTexture(MDLTexture, MTKTextureLoaderOptions, MTKTextureLoaderCallback)

Creates a new Metal texture from the specified texture.

[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 10, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.MacOSX, 10, 12, ObjCRuntime.PlatformArchitecture.Arch64, null)]
public void FromTexture (ModelIO.MDLTexture texture, MetalKit.MTKTextureLoaderOptions options, MetalKit.MTKTextureLoaderCallback completionHandler);
member this.FromTexture : ModelIO.MDLTexture * MetalKit.MTKTextureLoaderOptions * MetalKit.MTKTextureLoaderCallback -> unit

Parameters

texture
MDLTexture

The texture to load.

options
MTKTextureLoaderOptions

Options for loading the texture data.

completionHandler
MTKTextureLoaderCallback

A handler to run after the texture is loaded.

Attributes

Applies to

FromTexture(MDLTexture, MTKTextureLoaderOptions, NSError)

Creates a new Metal texture from the specified texture.

[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 10, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.MacOSX, 10, 12, ObjCRuntime.PlatformArchitecture.Arch64, null)]
public Metal.IMTLTexture FromTexture (ModelIO.MDLTexture texture, MetalKit.MTKTextureLoaderOptions options, out Foundation.NSError error);
member this.FromTexture : ModelIO.MDLTexture * MetalKit.MTKTextureLoaderOptions *  -> Metal.IMTLTexture

Parameters

texture
MDLTexture

The texture to load.

options
MTKTextureLoaderOptions

Options for loading the texture data.

error
NSError

Contains the error, if one occurred.

Returns

Attributes

Applies to

FromTexture(MDLTexture, NSDictionary, NSError)

Creates a new Metal texture from the specified texture.

[Foundation.Export("newTextureWithMDLTexture:options:error:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 10, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.MacOSX, 10, 12, ObjCRuntime.PlatformArchitecture.Arch64, null)]
public virtual Metal.IMTLTexture FromTexture (ModelIO.MDLTexture texture, Foundation.NSDictionary options, out Foundation.NSError error);
abstract member FromTexture : ModelIO.MDLTexture * Foundation.NSDictionary *  -> Metal.IMTLTexture
override this.FromTexture : ModelIO.MDLTexture * Foundation.NSDictionary *  -> Metal.IMTLTexture

Parameters

texture
MDLTexture

The texture to load.

options
NSDictionary

Options for loading the texture data

.

This parameter can be null.

error
NSError

Contains the error, if one occurred.

Returns

Attributes

Applies to

FromTexture(MDLTexture, NSDictionary, MTKTextureLoaderCallback)

Creates a new Metal texture from the specified texture.

[Foundation.Export("newTextureWithMDLTexture:options:completionHandler:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 10, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.MacOSX, 10, 12, ObjCRuntime.PlatformArchitecture.Arch64, null)]
public virtual void FromTexture (ModelIO.MDLTexture texture, Foundation.NSDictionary options, MetalKit.MTKTextureLoaderCallback completionHandler);
abstract member FromTexture : ModelIO.MDLTexture * Foundation.NSDictionary * MetalKit.MTKTextureLoaderCallback -> unit
override this.FromTexture : ModelIO.MDLTexture * Foundation.NSDictionary * MetalKit.MTKTextureLoaderCallback -> unit

Parameters

texture
MDLTexture

The texture to load.

options
NSDictionary

Options for loading the texture data

.

This parameter can be null.

completionHandler
MTKTextureLoaderCallback

A handler to run after the texture is loaded.

Attributes

Applies to