---
title: MTLCounterErrorValue
framework: metal
role: symbol
role_heading: Global Variable
path: metal/mtlcountererrorvalue
---

# MTLCounterErrorValue

A sentinel value for an entry in a counter sample buffer that indicates the entry’s data is invalid.

## Declaration

```swift
var MTLCounterErrorValue: UInt64 { get }
```

## Mentioned in

Converting a GPU’s counter data into a readable format

## Discussion

Discussion A GPU driver typically sets entries to this value when it encounters an error resolving a counter’s data. The driver also uses this value for counters it doesn’t support within a counter set (see Confirming which counters and counter sets a GPU supports).

## See Also

### Counter sample data output

- [Converting a GPU’s counter data into a readable format](metal/converting-a-gpus-counter-data-into-a-readable-format.md)
- [MTLCounterResultTimestamp](metal/mtlcounterresulttimestamp.md)
- [MTLCounterResultStatistic](metal/mtlcounterresultstatistic.md)
- [MTLCounterResultStageUtilization](metal/mtlcounterresultstageutilization.md)
