---
title: "supportsCounterSampling(_:)"
framework: metal
role: symbol
role_heading: Instance Method
path: "metal/mtldevice/supportscountersampling(_:)"
---

# supportsCounterSampling(_:)

Returns a Boolean value that indicates whether you can read GPU counters at the specified command boundary.

## Declaration

```swift
func supportsCounterSampling(_ samplingPoint: MTLCounterSamplingPoint) -> Bool
```

## Parameters

- `samplingPoint`: The command boundary to test.

## Mentioned in

Sampling GPU data into counter sample buffers

## See Also

### Sampling a GPU device’s counters

- [counterSets](metal/mtldevice/countersets.md)
- [MTLCounterSamplingPoint](metal/mtlcountersamplingpoint.md)
- [makeCounterSampleBuffer(descriptor:)](metal/mtldevice/makecountersamplebuffer(descriptor:).md)
