0

Is it possible, to render a scene using OpenGL and than somehow copy rendered 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!

1 Answer 1

1

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

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.