<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "macCatalyst: -",
    "macOS: 26.0.0 -",
    "visionOS: 26.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "ImmersiveMediaSupport",
  "identifier" : "/documentation/ImmersiveMediaSupport/ImmersiveVideoFrame/init(pixelBuffer:presentationTime:layout:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Immersive Media Support"
    ],
    "preciseIdentifier" : "s:21ImmersiveMediaSupport0A10VideoFrameV11pixelBuffer16presentationTime6layoutACSo11CVBufferRefa_So6CMTimeaAC0D6LayoutOtcfc"
  },
  "title" : "init(pixelBuffer:presentationTime:layout:)"
}
-->

# init(pixelBuffer:presentationTime:layout:)

Creates a video frame with one pixelBuffer and specified layout.

```
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 [`ImmersiveVideoFrame.VideoLayout`](/documentation/ImmersiveMediaSupport/ImmersiveVideoFrame/VideoLayout) for the valid options.

---

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)