A block of code that is invoked when the logic to create a
MTLCompute object is completed.
- iOS 9.0+
- macOS 10.11+
- Mac Catalyst 13.0+
- tvOS 9.0+
The completion handler takes the following parameters:
A new compute pipeline state object that contains the compiled compute pipeline state, or
nilif an error occurred.
A new reflection object that contains the reflection data about the compute function, including details about function arguments. If the pipeline state could not be compiled, this parameter is
An error object that describes the problem, or
nilif the operation succeeded.