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

# label

A string that identifies the sampler.

## Declaration

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

## 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 sampler

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