• Advertisement
Sign in to follow this  

How to lock a texture with D3DPOOL_DEFAULT, D3DUSAGE_RENDERTARGET?

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