Using GraphicBuffers to fast read from a texture
问题 I am working on some code that runs some GPGPU code on Android using shaders. Usually a Framebuffer is used so the result of the computation is stored in a texture. Also the input data is usually a texture. To improve performance it would be great to get rid of glTexImage2D and glReadPixels to upload and download images to and from the GPU memory space. All the code related to OpenGL is native. On Android GraphicBuffer can be used on Android for this propose because in mobile devices gpu