I create an image with openGL and read it whit glReadPixels(). Now, I want to analyze that data. I want to parallelize the loop that run on each pixel and check its color by CUDA. The problem is that I need to pass the data from the GPU to the CPU and again to the GPU.
There is a way I can pass the data from glReadPixles() to CUDA without pass through the CPU?
can texture memory help me?
glReadPixels
doesn't have anything to do with it. Rather than that you should look into CUDA's features for OpenGL-interoperation, which can be gained from CUDA's documentation. – Christian Rau