CUDA - copy OpenGL rendered image to 2D array
Is it possible, to render a scene using OpenGL and than somehow copy rendered 开发者_C百科image to, for example, 2D array using CUDA? I'd need to place a result in bool picture[resX][resY]
array, where true = coloured pixel, false = empty space.
Thanks is advance for any suggestions!
You could render to a PBO in OpenGL and then subsequently map this to a CUDA texture. Have a look at the OpenGL interop documentation for some pointers
精彩评论