---
title: pixelBuffer
framework: coreai
role: symbol
role_heading: Instance Property
path: coreai/inferencefunction/asyncvalue/pixelbuffer
---

# pixelBuffer

Waits for any pending write access on the underlying pixel buffer to complete, then returns it.

## Declaration

```swift
final var pixelBuffer: CVReadOnlyPixelBuffer? { get async throws }
```

## Discussion

Discussion Returns nil if kind is not .image.
