Type Alias

MTKTextureLoader.Callback

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

Declaration

typealias Callback = (MTLTexture?, Error?) -> Void

Discussion

The block parameters are defined as follows:

texture

A MTLTexture object, or nil if an error occurred.

error

If the operation was successful, this value is nil; otherwise, this parameter holds an NSError object that describes the problem that occurred.

See Also

Completing a Texture Loading Operation

typealias MTKTextureLoader.ArrayCallback

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