[osg-users] [osgCompute] Persistant texture modification using osgCompute / CUDA
Jens Orthmann
jens.svt at googlemail.com
Thu Nov 5 07:12:15 PST 2009
Hi Asmar,
I have taken a look at your code fragment and i have found out that you write into osgCuda::Arrays.<br> This might cause your problem because the "osgCuda::Array" class is an abstraction for "cudaArray" objects <br> which are read-only. Instead you should use "osgCuda::Buffer" objects into which kernels are allowed to write.
In the current version of osgCuda you get an error message when mapping the array as a TARGET for the DEVICE.
Cheers,
Jens
------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=19240#19240
More information about the osg-users
mailing list