---
title: "init(commandBuffer:)"
framework: metalperformanceshaders
role: symbol
role_heading: Initializer
path: "metalperformanceshaders/mpscommandbuffer/init(commandbuffer:)"
---

# init(commandBuffer:)

## Declaration

```swift
init(commandBuffer: any MTLCommandBuffer)
```
