MTKTextureLoader.Callback
The signature for the block executed after an asynchronous loading operation for a single texture has completed.
Declaration
typealias Callback = ((any MTLTexture)?, (any Error)?) -> VoidDiscussion
The block parameters are defined as follows:
- texture
A MTLTexture object, or
nilif 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.