简体   繁体   中英

How do I use graphics functions in CUDA?

I want to use basic functions like putpixel, initwindow in CUDA. How do I do it?

I would rather use the CUDA - OpenGL interop to visualize results from CUDA, see eg http://3dgep.com/opengl-interoperability-with-cuda/

CUDA cannot output directly to a window backbuffer. However, you can still use CUDA to write to a texture or a buffer and then use the results to visualize it in OpenGL. For a thorough example on how to do this, please refer to this project:

https://github.com/nvpro-samples/gl_cuda_interop_pingpong_st

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM