Type Alias

MTKTextureLoader.ArrayCallback

The signature for the block executed after an asynchronous loading operation for multiple textures has completed.

Declaration

typealias ArrayCallback = ([MTLTexture], Error?) -> Void

Discussion

The block parameters are defined as follows:

textures

An array of MTLTexture objects whose order corresponds to the requested textures. If an error occurs when loading a texture, an NSNull object occupies its place in the array.

error

If all texture loading operations were successful, this value is nil; otherwise, this parameter holds an NSError object that describes the first problem that occurred. (Which element in the input array the error corresponds to is undefined.)

See Also

Completing a Texture Loading Operation

typealias MTKTextureLoader.Callback

The signature for the block executed after an asynchronous loading operation for a single texture has completed.