3 ms·
> let us draw to the screen in CUDA without the need for OpenGL/Vulkan interop how would that work? like GPU frameworks would just be compute (like cuda) and s
by vitaminka 3y ago
> let us draw to the screen in CUDA without the need for OpenGL/Vulkan interop
how would that work? like GPU frameworks would just be compute (like cuda) and some small component of it would just allow to write the end result to a buffer which would be displayed or smth?
- mschuetz 3y agoExactly. Things like that already work with a workaround: You can use Cuda-OpenGL interop to expose an OpenGL framebuffer in CUDA, then you can simply write into that framebuffer from your CUDA kernel, and afterwards you get back to OpenGL to display it on screen. Just directly integrate that functionality in CUDA by providing a CUDA native framebuffer and a present(buffer) or buffer swap functionality.