Jump to content
  • Advertisement
Sign in to follow this  
sofakng

If I want to match my backbuffer, do I need my render target to have X8R8G8B8 format?

This topic is 4037 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 trying to render my entire scene to a render target (using a DirectX v9.0 wrapper) and I'm confused about a few things. It seems like my backbuffer uses the X8R8G8B8 format, but I'd like to use alpha transparency on my render target so is it ok to use the A8R8G8B8 format? My main interest is not to lose any quality what-so-ever. Also, what other description options should I specify for my render target? There is a mipmap option which I think I need to set to 0 (is that right?) and a depth stencil option that I set to disabled. (is that right?)

Share this post


Link to post
Share on other sites
Advertisement
A8R8G8B8 means that you have 1 byte for alpha, 1 byte for red, green and blue each. So don't worry, you can do alpha blending.

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.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!