Function ocl_core::create_from_gl_texture
[−]
[src]
pub unsafe fn create_from_gl_texture<C>(
context: C,
texture_target: cl_GLenum,
miplevel: cl_GLint,
texture: cl_GLuint,
flags: MemFlags,
device_versions: Option<&[OpenclVersion]>
) -> OclResult<Mem> where
C: ClContextPtr,
[UNTESTED]
Return a texture2D pointer from a OpenGL
texture2D object.
[TODO]: If version is < 1.2, automatically use older versions.
[Version Controlled: OpenCL 1.2+] See module docs for more info.