Edit

Share via


MTKTextureLoader.FromData Method

Definition

Overloads

FromData(NSData, MTKTextureLoaderOptions, MTKTextureLoaderCallback)

Creates and returns a Metal texture from the specified image data and options, and runs a completion handler when it completes.

FromData(NSData, MTKTextureLoaderOptions, NSError)

Creates and returns a Metal texture from the specified image data and options.

FromData(NSData, MTKTextureLoaderOptions, MTKTextureLoaderCallback)

Creates and returns a Metal texture from the specified image data and options, and runs a completion handler when it completes.

public void FromData (Foundation.NSData data, MetalKit.MTKTextureLoaderOptions options, MetalKit.MTKTextureLoaderCallback completionHandler);
member this.FromData : Foundation.NSData * MetalKit.MTKTextureLoaderOptions * MetalKit.MTKTextureLoaderCallback -> unit

Parameters

data
NSData

The texture data.

options
MTKTextureLoaderOptions

Options for loading the texture data.

completionHandler
MTKTextureLoaderCallback

A handler to run after the texture is loaded.

Applies to

FromData(NSData, MTKTextureLoaderOptions, NSError)

Creates and returns a Metal texture from the specified image data and options.

public Metal.IMTLTexture FromData (Foundation.NSData data, MetalKit.MTKTextureLoaderOptions options, out Foundation.NSError error);
member this.FromData : Foundation.NSData * MetalKit.MTKTextureLoaderOptions *  -> Metal.IMTLTexture

Parameters

data
NSData

The texture data.

options
MTKTextureLoaderOptions

Options for loading the texture data.

error
NSError

Contains the error, if one occurred.

Returns

Applies to