<!--
{
  "availability" : [
    "iOS: 4.0.0 -",
    "iPadOS: 4.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.7.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreVideo",
  "identifier" : "/documentation/CoreVideo/CVPixelBufferPoolCreatePixelBufferWithAuxAttributes(_:_:_:_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "Core Video"
    ],
    "preciseIdentifier" : "c:@F@CVPixelBufferPoolCreatePixelBufferWithAuxAttributes"
  },
  "title" : "CVPixelBufferPoolCreatePixelBufferWithAuxAttributes(_:_:_:_:)"
}
-->

# CVPixelBufferPoolCreatePixelBufferWithAuxAttributes(_:_:_:_:)

Creates a new pixel buffer with auxiliary attributes from the pool.

```
func CVPixelBufferPoolCreatePixelBufferWithAuxAttributes(_ allocator: CFAllocator?, _ pixelBufferPool: CVPixelBufferPool, _ auxAttributes: CFDictionary?, _ pixelBufferOut: UnsafeMutablePointer<CVPixelBuffer?>) -> CVReturn
```

## Parameters

`allocator`

The allocator to use for creating the buffer pool. Pass <doc://com.apple.documentation/documentation/CoreFoundation/kCFAllocatorDefault> to use the default allocator. See <doc://com.apple.documentation/documentation/CoreFoundation/predefined-allocators> for additional values you can use.

`pixelBufferPool`

The pixel buffer pool for creating the new pixel buffer.

`auxAttributes`

An optional dictionary of auxiliary attributes that describes the allocation request. See the Constants topic group below for possible values.

`pixelBufferOut`

On output, the newly created pixel buffer.

## Return Value

A Core Video result code. See [Result Codes](/documentation/CoreVideo/result-codes) for possible values.

## Discussion

This function creates a new [`CVPixelBuffer`](/documentation/CoreVideo/CVPixelBuffer) object using the pixel buffer attributes specified during pool creation and the attributes specified in the `auxAttributes` parameter.

---

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)