---
title: MTLCounterSamplingPoint.atDrawBoundary
framework: metal
role: symbol
role_heading: Case
path: metal/mtlcountersamplingpoint/atdrawboundary
---

# MTLCounterSamplingPoint.atDrawBoundary

Counter sampling is allowed between draw commands in a render pass.

## Declaration

```swift
case atDrawBoundary
```

## 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 MTLRenderCommandEncoder to sample the counters between individual draw commands.

## See Also

### Reading sampling boundary types

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