pouët.net

Go to bottom

what's the fastest way to get CUDA result to screen ?

category: general [glöplog]
 
hello,

i wonder what's the fastest way to get a framebuffer, which is stored in CUDA-globalmem, onto screen using DX9 ? i've seen an OGL example, but with DX ?
added on the 2009-09-24 20:40:37 by xortdsc xortdsc
of course i wanna avoid any device2host-memcpy-calls ;)
added on the 2009-09-24 20:41:21 by xortdsc xortdsc
BB Image
added on the 2009-09-24 20:44:18 by havoc havoc
lol
added on the 2009-09-24 20:48:43 by xortdsc xortdsc
i'm sure he's calling the host, too...
added on the 2009-09-24 20:49:10 by xortdsc xortdsc
iirc cuda to texture or cuda to framebuffer device-device copies are not possible. i recommend asking the people at official cuda forums on nvidia website.
the fastest way would probably be to start with one of the sample projects, no?
added on the 2009-09-24 22:18:38 by Hyde Hyde
why CUDA anyways? it is vendor-dependent. besides os x snowleopard has drivers for opencl with which I am fiddling around. so it shouldn't be so long until we see opencl up and running widespread.
added on the 2009-09-24 22:30:45 by decipher decipher
why CUDA? well, if you're doing raymarching and is feeling lazy, there's one reason. But there are also more valid reasons, like e.g. if you want to do something else than filling triangles. Then the two most popular gpu-apis are just in the way.
added on the 2009-09-24 22:34:01 by Hyde Hyde
hyde I mean, why specifically CUDA :). I mean he can as well just wait for the newcomers
added on the 2009-09-24 22:35:56 by decipher decipher
xortdsc, yes - please stop what you're doing immediately until Decipher gives you the green light.
lol
added on the 2009-09-25 08:36:40 by Pegan Pegan
haha, rright...
i'm sure it is possible, since global-mem to vertex-buffer works perfectly, i dont see any reason why it shouldn't work for framebuffers. anyway, i'll try the cuda-forums...
added on the 2009-09-25 15:05:52 by xortdsc xortdsc

login

Go to top