---
title: label
framework: metal
role: symbol
role_heading: Instance Property
path: metal/mtlfunction/label
---

# label

A string that identifies the shader function.

## Declaration

```swift
var label: String? { get set }
```

## Discussion

Discussion Object and command labels are useful identifiers at runtime or when profiling and debugging your app using any Metal tool. See Naming resources and commands.

## See Also

### Identifying shader functions

- [device](metal/mtlfunction/device.md)
- [functionType](metal/mtlfunction/functiontype.md)
- [name](metal/mtlfunction/name.md)
- [MTLFunctionType](metal/mtlfunctiontype.md)
- [options](metal/mtlfunction/options.md)
- [MTLFunctionOptions](metal/mtlfunctionoptions.md)
