---
title: MTLCounterSamplingPoint.atDispatchBoundary
framework: metal
role: symbol
role_heading: Case
path: metal/mtlcountersamplingpoint/atdispatchboundary
---

# MTLCounterSamplingPoint.atDispatchBoundary

Counter sampling is allowed between kernel dispatches in a compute pass.

## Declaration

```swift
case atDispatchBoundary
```

## Mentioned in

Sampling GPU data into counter sample buffers

## Discussion

Discussion When a Metal device instance supports this sampling boundary, you can call the sampleCounters(sampleBuffer:sampleIndex:barrier:) method on an MTLComputeCommandEncoder to sample the counters between individual dispatch commands.

## See Also

### Reading sampling boundary types

- [MTLCounterSamplingPoint.atBlitBoundary](metal/mtlcountersamplingpoint/atblitboundary.md)
- [MTLCounterSamplingPoint.atDrawBoundary](metal/mtlcountersamplingpoint/atdrawboundary.md)
- [MTLCounterSamplingPoint.atStageBoundary](metal/mtlcountersamplingpoint/atstageboundary.md)
- [MTLCounterSamplingPoint.atTileDispatchBoundary](metal/mtlcountersamplingpoint/attiledispatchboundary.md)
