I have an issue with the OpenCL OpenGL interop mode:
cl::ImageGL imageFromGL(context, CL_MEM_READ_WRITE, GL_TEXTURE_2D, 0, myGL->textures[0], errNum);
so there are various problems:
- How do I get a
const & cl_context
from mycl_context
context? - What is my target? (some websites told me to use
GL_TEXTURE_2D
but this does not work.)