开发者

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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜