<!--
{
  "availability" : [
    "iOS: 14.0.0 -",
    "iPadOS: 14.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "ARKit",
  "identifier" : "/documentation/ARKit/ARDepthData/depthMap",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "ARKit"
    ],
    "preciseIdentifier" : "c:objc(cs)ARDepthData(py)depthMap"
  },
  "title" : "depthMap"
}
-->

# depthMap

The estimated distance from the device to its environment, in meters.

```
unowned(unsafe) var depthMap: CVPixelBuffer { get }
```

## Discussion

For custom renderers, if you create a texture to send depth data to the GPU, choose a <doc://com.apple.documentation/documentation/Metal/MTLPixelFormat> according to the [`depthMap`](/documentation/ARKit/ARDepthData/depthMap) pixel format. Call <doc://com.apple.documentation/documentation/CoreVideo/CVPixelBufferGetPixelFormatType(_:)> on the [`depthMap`](/documentation/ARKit/ARDepthData/depthMap) to get its format. For example, if at runtime the [`depthMap`](/documentation/ARKit/ARDepthData/depthMap) format is <doc://com.apple.documentation/documentation/CoreVideo/kCVPixelFormatType_DepthFloat32>  (<doc://com.apple.documentation/documentation/kernel/ostype> ``fdep``), use  <doc://com.apple.documentation/documentation/Metal/MTLPixelFormat/r32Float>.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)