---
title: isActive
framework: metal
role: symbol
role_heading: Instance Property
path: metal/mtlargument/isactive
---

# isActive

A Boolean that indicates whether the compiled function uses the argument.

## Declaration

```swift
var isActive: Bool { get }
```

## Discussion

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.

## See Also

### Describing the argument

- [name](metal/mtlargument/name.md)
- [index](metal/mtlargument/index.md)
- [type](metal/mtlargument/type.md)
- [access](metal/mtlargument/access.md)
