I would like to sample a dynamic openGL texture inside a closesthit program (the texture content is updated every frame). I’m able to build a texture object with cudaCreateTextureObject and sample it, but updating its cudaArray doesn’t seems to work. I’m not sure if texture objects pixels can be updated dynamically.
If I look at this cuda sample https://github.com/nvpro-samples/gl_cuda_interop_pingpong_st, dynamic textures (surface objects) are binded to the device program using CUtexrefs. Is there a way to do something similar with Optix 7?
I was wondering if anyone knew how this can be done.