Asynchronously generates a specialized shader function.
- iOS 10.0+
- macOS 10.12+
- Mac Catalyst 13.0+Beta
- tvOS 10.0+
The name of the specialized function.
The set of constant values assigned to the function constants. Compilation fails if you do not provide valid constant values for all required function constants.
A block of code invoked when the compilation and creation of a specialized function is completed.
A specialized function, or
nilif an error occurred.
An error object that describes compilation problems, if any. This object contains compiler errors if the specialized function is
nil, and compiler warnings if the specialized function was created with warnings. If the specialized function was created successfully, without errors or warnings, this error object is
Function constant values are first looked up by their index, then by their name. Any values that do not correspond to a function constant in the named function are ignored (without generating errors or warnings).