Sign in to follow this  

Retrieving vertex data from gpu

This topic is 3938 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
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

This topic is 3938 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.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this