I visited a CUDA tutorial recently. And now i`m thinking about in which cases CUDA will help me solving my volume rendering / graphics tasks.
One of the important parts of the tutorial was to use SMEM whenever possible. But what about SMEM without using CUDA. I mean, the hardware is still the same, hence the driver should manage using SMEM either when using graphics API?
Further i have the problem of updating 3D texture. If i want to do some computation on a 3D volume (e.g. PDE solver), i think i have to copy slice by slice in an OpenGL buffer and bind this buffer to CUDA (mapBufferObject) and then i`m able to process this slice. And copy back into 3D tex afterwards.
My question is what is the smartest way to do computation on 3D tex with CUDA and display afterwards with OpenGL?