Function CVOpenGLTextureCacheCreateTextureFromImage

Source
pub unsafe extern "C-unwind" fn CVOpenGLTextureCacheCreateTextureFromImage(
    allocator: Option<&CFAllocator>,
    texture_cache: &CVOpenGLTextureCache,
    source_image: &CVImageBuffer,
    attributes: Option<&CFDictionary>,
    texture_out: NonNull<*mut CVOpenGLTexture>,
) -> 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 CVOpenGLTexture and CVReturn and CVOpenGLTextureCache only.
Expand description

Creates a CVOpenGLTexture object from an existing CVImageBuffer

Parameter allocator: The CFAllocatorRef to use for allocating the CVOpenGLTexture object. May be NULL.

Parameter textureCache: The texture cache object that will manage the texture

Parameter sourceImage: The CVImageBuffer that you want to create a CVOpenGLTexture from.

Parameter attributes: For Future use only! - The desired buffer attributes for the CVOpenGLTexture.

Parameter textureOut: The newly created texture object will be placed here.

Returns: Returns kCVReturnSuccess on success