Synchronously generates a specialized shader function.
- iOS 10.0+
- macOS 10.12+
- Mac Catalyst 13.0+
- 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 pointer to 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
A specialized function, or
nil if an error occurred.
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).