is it able to write to cudaTextureObject_t ? what’s the most efficient method?
thanks!
device code cannot write directly to a cudaTextureObject_t.
You can map the underlying resource (cudaArray) to a surface object and write to it that way. There are cuda sample codes that demonstrate this.
thanks.
is it able to write to the openGL default backBuffer which is GL_BACK by cudaSurface_t?
just have a simple try, got ERROR: cudaErrorInvalidResourceHandle when cudaGraphicsGLRegisterImage