Hi
In android, I created cl context from gl like this :
cl_context_properties props[] = { CL_GL_CONTEXT_KHR, eglGetCurrentContext(), CL_EGL_DISPLAY_KHR, eglGetCurrentDisplay(), CL_CONTEXT_PLATFORM, clplatform,0);
clCreateContext(props,1,&device,NULL,NULL,NULL);
and then create opengl texture, this texture can be used . After that , I want to use opencl to calculate this texture, so I do like this :
clCreateFromGLTexture2D(clContext, CL_MEM_READ_WRITE,GL_TEXTURE_2D, 0,texturename ,&errNum);
And this function failed, the errNum returned CL_INVALID_GL_OBJECT , and I do not know why , Can you help me ?
Thanks
Hi,Michael
I was not in internet for 2 weeks . And I just see your comment at now . Thank you for your help .
I will check this issue with qualcomm , ask them this texture format can be used or not .
If I have any progress, will tell you .