functions
The list of functions for creating the stitched library.
Declaration
var functions: [any MTLFunction] { get set }Discussion
The function objects need to all be created by the same Metal device object that you’ll use to create the library. The MSL functions referenced by these function objects need to be declared with the stitchable attribute, as in the example below:
[[stitchable]]
float add(float a, float b)
{
return a + b;
}