Type Alias

MTKTextureLoaderArrayCallback

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

Declaration

typedef void (^MTKTextureLoaderArrayCallback)(NSArray<id<MTLTexture>> *textures, NSError *error);

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

MTKTextureLoaderCallback

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