Function 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.