Jump to content
  • Advertisement
Sign in to follow this  
fozed

surfaces and backbuffer

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

Is there a way to use a surface as a render target and then copy it to a location in the back buffer? Im using dx9, and the docs say that in order for a surface to be set as a render target it must have D3DUSAGE_RENDERTARGET, which requires D3DPOOL_DEFAULT. But to use a surface as a source for a copy using UpdateSurface, it must have been created with D3DPOOL_SYSTEMMEM. Is there a way to do this???

Share this post


Link to post
Share on other sites
Advertisement
You can use the D3DXLoadSurfaceFromSurface function to copy from a texture in one pool to a texture in another. Don't know about doing a copy directly to the back buffer though -- seems likely not to work or to cause lots of trouble. You will probably just want to render a textured quad and get your texture into the back buffer that way.

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!