pub unsafe extern "C-unwind" fn CVOpenGLBufferPoolCreateOpenGLBuffer(
allocator: Option<&CFAllocator>,
open_gl_buffer_pool: &CVOpenGLBufferPool,
open_gl_buffer_out: NonNull<*mut CVOpenGLBuffer>,
) -> CVReturn👎Deprecated: OpenGL/OpenGLES is no longer supported. Use Metal APIs instead. (Define COREVIDEO_SILENCE_GL_DEPRECATION to silence these warnings)
Available on crate features
CVBuffer and CVImageBuffer and CVOpenGLBuffer and CVReturn and CVOpenGLBufferPool only.Expand description
Creates a new OpenGLBuffer object from the pool.
The function creates a new CVOpenGLBuffer with the default attachments using the OpenGL buffer attributes specifed during pool creation.
Parameter allocator: The CFAllocatorRef to use for creating the OpenGL buffer. May be NULL.
Parameter openGLBufferPool: The CVOpenGLBufferPool that should create the new CVOpenGLBuffer.
Parameter openGLBufferOut: The newly created OpenGL buffer will be placed here
Returns: Returns kCVReturnSuccess on success