MTKTextureLoader.ArrayCallback
The signature for the block executed after an asynchronous loading operation for multiple textures has completed.
Declaration
typealias ArrayCallback = ([any MTLTexture], (any Error)?) -> VoidDiscussion
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.)