I am working with ARM mali 72 on my Android smartphonne.
I would like to use the output buffer fron OpenCL to render it into OpenGL like a texture.
I have no problem with openCL alone nether openGL alone.
I got no cloud to how to use both in the same application.
The goal is to use mY output OpenCL and send it to openGL.
Some peice of code step by step would be very nice.
I can use openCL 2.0 and opengl ES 3.0 on my smartphonne.
************** ADDED THE 30/09/2020 ************
It Look like I need more information on how to manage my problem.
So my configuration is ! I got Java OpenGL ES Application to already develloped. I retreive the camera frame from Camera.OnPreviousFrame then a send it to OpenCL using JNI.
So i would like to Get the EGL display from Java OpenGL ES Send it through JNI and then Compute my openCL kernel send It back to java OpenGL ES.
I know how to retreive data from OpenCL, transform it to bitmap and use SurfaceTexture and GL_TEXTURE_EXTERNAL_OES to display it into openGL ES.
My problem is how to Retreive EGL display from java OpenGL ES. How to send it to C++, this i can manage to find out using JNI. But i do not know how to implement the C++ part using EGL and OpenCL.
The Answer from BenMark is interresting concerning the processing but I am missing some part. It is possible to use my configuration, using java openGL ES or do i nedd to do all the EGL, openGL, openCL code in native ?
Thanks a lot for help me to anderstand the problem and try to find a solution. ;))