Sign in to follow this  
sofakng

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

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
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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this