functionHandle(function:)
Returns the handle for a function that you can add to a function table.
Declaration
func functionHandle(function: any MTLFunction) -> (any MTLFunctionHandle)?Parameters
- function:
A function that the Metal compiler created with both of the following settings:
Return Value
A function handle if the method succeeds, otherwise nil.