Reading and Writing OpenGL Textures with Cuda

Dunno will it help (may be a bit of off-topic), but when I want to write stuff to a texture I use pixel buffer object ‘trick’ - create it and register in CUDA, map it as kernel input/output, do the kernel work on it, and finally copy the outcome from PBO to bound GL texture.

MK