Sign in to follow this  
ryan20fun

question about IDirect3D9::CheckDeviceType

Recommended Posts

ryan20fun    2635
Hi.
one of the params for IDirect3D9::CheckDeviceType is AdapterFormat, and the tutorials and articles ive read say this is the FontBuffer format.
is that true ?
if so, how do you set it ?
because i cant find out how (DX docs dont mention anything and google comes up with nothing)
Thanks in Advance.

Share this post


Link to post
Share on other sites
Evil Steve    2017
In fullscreen mode, the adapter format is the same as the backbuffer format you specify in your D3DPRESENT_PARAMETERS. In windowed mode, it's the desktop format (Which may be different from your backbuffer format), which you can obtain via IDirect3D9::GetAdapterDisplayMode().

Share this post


Link to post
Share on other sites
ryan20fun    2635
:lol: oh, so thats why there is a diffrence.
[b]many thanks.[/b]

just on more thing, are the only formats aplicable for a BackBuffer format are under the [i]BackBuffer or Display Formats[/i]section of the DX Docs ?

Share this post


Link to post
Share on other sites
programci_84    336
Here's a list that I'm using with my device enumeration algorithms for my renderer.

* Applicable back buffer formats are:
RGB8, ARGB8, XRGB8, R5G6B5, A1RGB5, X1RGB5, RG3B2, A8R3G3B2, XRGB4, ARGB4, A2RGB10

* Applicable display (or adapter, or front buffer) formats are:
XRGB8, ARGB8, A1RGB5, R5G6B5, X1RGB5, A2RGB10

* Applicable depth-stencil formats are:
D24S8, D16, D24X8, D32, D15S1, D24X4S4



hth.
-R

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