Sign in to follow this  
cow_in_the_well

D3DFMT_A8R8G8B8/D3DFMT_X8R8G8B8

Recommended Posts

How come if I do GetAdapterModeCount passing in D3DFMT_A8R8G8B8 as the format, it returns 0, except I can still create the device using that format? If I pass D3DFMT_X8R8G8B8 into GetAdapterModeCount it returns something like 63. Is it safe to assume that if D3DFMT_X8R8G8B8 is supported, I can use D3DFMT_A8R8G8B8, or is there something in d3dcaps I need to check? Oh, and my card is a geForce 4 ti4600. Thanks.

Share this post


Link to post
Share on other sites
The "display adapter" can't do transparency (your monitor has trouble with alpha), however your backbuffer CAN have alpha for DESTALPHA blend effects.

You need to use CheckDeviceType, using the X version for the adapter, and the A version for the backbuffer to determine support.

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