Jump to content
  • Advertisement
Sign in to follow this  

moving some data off and on GPU between dispatches

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

I have written a DirectCompte program that sends some data to the GPU, processes the data and then retrieves the resultant grid. i.e. this is a GPGPU application. Is anyone familiar with how to do the below without retrieving ALL the Grid data between iterations and sending ALL grid data back to the GPU for every dispatch. There seems to be no easy way to do this sort of thing with DIrectX. Any reasonable direction much appreciated.

Existing process:
i.e Normal process is:Grid data Resource allocation+view, Dispatch x 100 iterations, Retrieve Grid data from GPU

Now I want to run it as:

Resouce allocation + view

Dispatch 1st iteration

Retrieve only a small part of the GRID. i.e. the first 10 grid points
Update these first 10 grid points with new values from elsewhere
Send the updated 10 grid points back to GPU

Dispatch 2nd iteration

...... as before ....... 10 grid points only
Dispatch last iteration

Retrieve all Grid data
end of process.


Share this post

Link to post
Share on other sites
You can use CopySubresourceRegion to only copy a portion of data to and from staging resoruces, which should let you do what you want.

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!