isActive
A Boolean that indicates whether the compiled function uses the argument.
Declaration
var isActive: Bool { get }Discussion
When you create the MTLFunction object, Metal statically determines whether the function uses the argument. If true, you need to provide a value for this argument when you encode a command that calls this function. If false, the function doesn’t use the argument, and you can ignore it.