Jump to content
  • Advertisement
Sign in to follow this  
PAiNIC

Transferring between GPU and system memory

This topic is 4815 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'm wanting to create a volume texture from a stack of 2d textures that dynamically change using render-to-texture and pixel shaders. I've pretty much worked out that the best way to do this is to get myself a system-memory copy of each 'slice' in the texture stack and a system-memory volume texture and then lock them both and transfer data between. My problem is that I can't seem to find a device function to transfer data into system memory! I know GetRenderTargetData will do the trick, but I'm worried about the speed hit. Anyone know of a function like UpdateTexture that goes in the other direction across the bridge?

Share this post


Link to post
Share on other sites
Advertisement
This doesn't really answer your question at all, but transferring data from video memory into system memory is extremely slow. The AGP bus isn't designed for transferring things from video memory into system memory. Is there not a way to do what you're trying to do entirely in video memory, or entirely in system memory (I'm extremely tired, and can't think properly just now, sorry)?

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!