<!--
{
  "availability" : [
    "macOS: 10.4.0 - 10.14.0"
  ],
  "documentType" : "symbol",
  "framework" : "CoreVideo",
  "identifier" : "/documentation/CoreVideo/CVOpenGLBufferPoolCreate(_:_:_:_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "Core Video"
    ],
    "preciseIdentifier" : "c:@F@CVOpenGLBufferPoolCreate"
  },
  "title" : "CVOpenGLBufferPoolCreate(_:_:_:_:)"
}
-->

# CVOpenGLBufferPoolCreate(_:_:_:_:)

Creates a new OpenGL buffer pool.

```
func CVOpenGLBufferPoolCreate(_ allocator: CFAllocator?, _ poolAttributes: CFDictionary?, _ openGLBufferAttributes: CFDictionary?, _ poolOut: UnsafeMutablePointer<CVOpenGLBufferPool?>) -> CVReturn
```

## Parameters

`allocator`

The allocator to use for allocating this buffer pool. Pass `NULL` to specify the default allocator.

`poolAttributes`

A Core Foundation dictionary containing the attributes to be used for the pool itself.

`openGLBufferAttributes`

A Core Foundation dictionary containing the attributes to be used for creating new OpenGL buffers within the pool.

`poolOut`

On output, `poolOut` points to the new OpenGL buffer pool.

## Return Value

A Core Video result code. See[Core Video Constants](/documentation/CoreVideo/core-video-constants) for possible values.

## Discussion

---

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)