Hi All
I would like to ask if it is possible to run CUDA with Unity ?
Hi All
I would like to ask if it is possible to run CUDA with Unity ?
Yes, it is, but you have to develop a DLL native plugin to do this.
I’m currently successfully doing OpenGL (GLCore) and D3D11 interop with CUDA from Unity textures.
All CUDA mapping, unmapping and registering/unregistering of textures and OpenGL/Direct3D objects has to be done from the render thread.
It took me a while to figure this out, but essentially you have to get the native texture pointers from your Unity code into your native CUDA DLL.