---
title: "CVOpenGLBufferGetAttributes(_:)"
framework: Core Video
role: symbol
role_heading: Function
platforms: [macOS 10.4+]
path: "corevideo/cvopenglbuffergetattributes(_:)"
---

# CVOpenGLBufferGetAttributes(_:)

Obtains the attributes of a Core Video OpenGL buffer.

## Declaration

```swift
func CVOpenGLBufferGetAttributes(_ openGLBuffer: CVOpenGLBuffer) -> Unmanaged<CFDictionary>?
```

## Parameters

- `openGLBuffer`: The OpenGL buffer whose attributes you want to obtain.

## Return Value

Return Value A Core Foundation dictionary containing the OpenGL buffer attributes, or NULL if no attributes exist.

## See Also

### Functions

- [CVOpenGLBufferCreate(_:_:_:_:_:)](corevideo/cvopenglbuffercreate(_:_:_:_:_:).md)
- [CVOpenGLBufferAttach(_:_:_:_:_:)](corevideo/cvopenglbufferattach(_:_:_:_:_:).md)
- [CVOpenGLBufferGetTypeID()](corevideo/cvopenglbuffergettypeid().md)
