CVOpenGLBufferPoolCreateOpenGLBuffer(_:_:_:)
Creates a new OpenGL buffer from an OpenGL buffer pool.
Declaration
func CVOpenGLBufferPoolCreateOpenGLBuffer(_ allocator: CFAllocator?, _ openGLBufferPool: CVOpenGLBufferPool, _ openGLBufferOut: UnsafeMutablePointer<CVOpenGLBuffer?>) -> CVReturnParameters
- allocator:
The allocator to use for creating the buffer. May be
NULLto specify the default allocator. - openGLBufferPool:
The OpenGL buffer pool that should create the new OpenGL buffer.
- openGLBufferOut:
On output,
OpenGLBufferOutpoints to the new OpenGL buffer.
Return Value
A Core Video result code. See Core Video Constants for possible values.
Discussion
The function creates a new OpenGL buffer using the OpenGL buffer attributes specified in the CVOpenGLBufferPoolCreate(_:_:_:_:) call. This buffer has default attachments as specified in the openGLBufferAttributes parameter of CVOpenGLBufferPoolCreate(_:_:_:_:) (using either the kCVBufferPropagatedAttachmentsKey or kCVBufferNonPropagatedAttachmentsKey attributes).