---
title: segmentationBuffer
framework: arkit
role: symbol
role_heading: Instance Property
path: arkit/arframe/segmentationbuffer
---

# segmentationBuffer

A buffer that contains pixel information identifying the shape of objects from the camera feed that you use to occlude virtual content.

## Declaration

```swift
var segmentationBuffer: CVPixelBuffer? { get }
```

## Discussion

Discussion ARKit generates the contents of this buffer by processing the camera feed. If you implement a custom renderer, you apply this property by using alpha and depth mattes provided with ARMatteGenerator. Apps using one of the standard renderers don’t need this this property to occlude virtual content with people. The standard renderers (ARView, ARSCNView, and ARSKView) enable people occlusion when you add personSegmentation or personSegmentationWithDepth to your configuration’s frameSemantics.

## See Also

### Checking for people

- [detectedBody](arkit/arframe/detectedbody.md)
- [ARBody2D](arkit/arbody2d.md)
- [estimatedDepthData](arkit/arframe/estimateddepthdata.md)
- [ARFrame.SegmentationClass](arkit/arframe/segmentationclass.md)
