Jump to content
  • Advertisement
Sign in to follow this  
coderchris

OpenGL [DX9] Asynchronous read-back possible?

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

In OpenGL, pixel buffer objects (PBO's) have the ability to asynchronously read back render target data. Im wondering if directx9 has this functionality as well. The directx docs don't mention this ability anywhere... The only function that i'm aware of that can be used to get the render target data is GetRenderTargetData() Is that function asynchronous? If not, is there any other ways of doing asynchronous read back of render target data? Thanks

Share this post


Link to post
Share on other sites
Advertisement
Quote:
Original post by coderchris
In OpenGL, pixel buffer objects (PBO's) have the ability to asynchronously read back render target data.

Im wondering if directx9 has this functionality as well. The directx docs don't mention this ability anywhere...

The only function that i'm aware of that can be used to get the render target data is GetRenderTargetData()

Is that function asynchronous? If not, is there any other ways of doing asynchronous read back of render target data?

Thanks
That depends on the driver really. I wouldn't be surprised if it was done async; although doing anything with the system memory surface or the render target will likely result in a stall which will cause the GPU to finish transferring the surface before moving on. Even if it is asynchronous, there's no way to query D3D to see if it's done.

Share this post


Link to post
Share on other sites
IIRC, GetRenderTargetData is async, and will be inserted into the instruction stream. The later lock is what will force it to happen if it hadn't happened already.

However, I'm not sure I remember correctly.

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!