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

# label

A string that helps you identify the compute pipeline state during debugging.

## Declaration

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

## Discussion

Discussion 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 a pipeline state

- [device](metal/mtlcomputepipelinestate/device.md)
- [gpuResourceID](metal/mtlcomputepipelinestate/gpuresourceid.md)
