Jump to content
  • Advertisement
Sign in to follow this  
Psyian

Retrieving vertex data from gpu

This topic is 4217 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hey all, Not sure if this should be in another forum, but i am using directx so thought i'd post here. I'm looking for a way to pass vertex data to the vertexshader, have the shader modify the data, and then retrieve the altered vertex data back. Is there a way to do this? Basically this should allow me to send more data to the gpu for processing. I'm trying to use the GPU as a parrallel processor in effect. I've had a look at this site: www.gpgpu.org But haven't found anything useful/practical. I know of rendering to vertexbuffer, unfortunatley my internet connection is too bad for the ati samples (400Mb) and i don't know enough on how it works, can the calling application get the modified data without using a texture/rendertarget as the output? Any help appreciated. Thanks in advance. Psy

Share this post


Link to post
Share on other sites
Advertisement
Thanks Agony,

that looks exactly what i'm looking for. Does anyone know what the performance is like??

Share this post


Link to post
Share on other sites
Well, it's performed on the CPU.
To have the GPU do the work you need to output the vertices to a texture, then lock the texture and fetch the results. MRTs or multiple passes if you need to return a lot of data.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!