Function ocl_core::create_from_gl_buffer
source · pub unsafe fn create_from_gl_buffer<C>(
context: C,
gl_object: cl_GLuint,
flags: MemFlags
) -> Result<Mem>where
C: ClContextPtr,
Expand description
Return a buffer pointer from a OpenGL
buffer object.
Safety
The caller must ensure that correct and appropriate flags
are being
used.