---
title: "makeMutablePixelBuffer(_:)"
framework: corevideo
role: symbol
role_heading: Instance Method
path: "corevideo/cvmutablepixelbuffer/pool/makemutablepixelbuffer(_:)"
---

# makeMutablePixelBuffer(_:)

This function creates a new CVMutablePixelBuffer using the pixel buffer attributes specified during pool creation.

## Declaration

```swift
final func makeMutablePixelBuffer(_ attributes: CVMutablePixelBuffer.Pool.AllocationAttributes = .init()) throws -> CVMutablePixelBuffer
```

## Parameters

- `attributes`: Attributes which control how pixel buffers are allocated

## Discussion

Discussion Returns A new mutable pixel buffer created with creationAttributes passed to init(pixelBufferAttributes:configuration:)
