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

# label

An optional name that can help you identify the command buffer.

## Declaration

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

## Discussion

Discussion Set labels to help you quickly identify a command buffer at runtime in the Metal debugging and profiling tools. See Naming resources and commands.

## See Also

### Identifying the command buffer

- [commandQueue](metal/mtlcommandbuffer/commandqueue.md)
- [device](metal/mtlcommandbuffer/device.md)
