---
title: commandBuffer
framework: Immersive Media Support
role: symbol
role_heading: Instance Property
platforms: [macOS 27.0+, visionOS 27.0+]
path: immersivemediasupport/immersivepreviewrenderer/commandbuffer
---

# commandBuffer

The command buffer of the render.

## Declaration

```swift
@MainActor var commandBuffer: (any MTLCommandBuffer)? { get }
```

## Discussion

Discussion Use this to present a drawable and commit the command buffer to finalize the frame.
