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

# label

A string that identifies the resource.

## 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 the resource

- [device](metal/mtlresource/device.md)
