init(named:in:constantValues:)
Creates a descriptor referencing the named function in the given library, with the provided function constant values.
Declaration
init(named name: String, in library: any MTLLibrary, constantValues: MTLFunctionConstantValues)Parameters
- name:
The name of the Metal function in the library.
- library:
The Metal library that contains the function.
- constantValues:
The Metal function constant values to specialize the function with.