Jump to content
  • Advertisement
Sign in to follow this  
executive

How to lock a texture with D3DPOOL_DEFAULT, D3DUSAGE_RENDERTARGET?

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

Hi, How can I lock a texture with the parameters D3DPOOL_DEFAULT and D3DUSAGE_RENDERTARGET? I know it can't be done directly... Thanks in advance! Nicolas

Share this post


Link to post
Share on other sites
Advertisement
From looking at the docs IDirect3DDevice9::GetRenderTargetData() will do the trick for you.

Quote:
The destination surface must be either an off-screen plain surface or a level of a texture (mipmap or cube texture) created with D3DPOOL_SYSTEMMEM.

The source surface must be a regular render target or a level of a render-target texture (mipmap or cube texture) created with POOL_DEFAULT.


hth
Jack

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!