---
title: "init(pixelBuffer:presentationTime:layout:)"
framework: Immersive Media Support
role: symbol
role_heading: Initializer
platforms: [macOS 26.0+, visionOS 26.0+]
path: "immersivemediasupport/immersivevideoframe/init(pixelbuffer:presentationtime:layout:)"
---

# init(pixelBuffer:presentationTime:layout:)

Creates a video frame with one pixelBuffer and specified layout.

## Declaration

```swift
init(pixelBuffer: CVPixelBuffer, presentationTime: CMTime, layout: ImmersiveVideoFrame.VideoLayout = .sideBySide)
```

## Parameters

- `pixelBuffer`: pixelBuffer containing the video frame.
- `presentationTime`: Presentation time of the video frame.
- `layout`: How left and right eye is packed into the pixelBuffer. See doc://com.apple.immersivemediasupport/documentation/ImmersiveMediaSupport/ImmersiveVideoFrame/VideoLayout for the valid options.
