Skip to main content
gamedev.net
🔒 Locked

Enumeration

Started by njpaul Dec 14, 2005 at 12:32 PM 1 replies 900+ views
Original Post
njpaul
njpaul
I'm working on enumerating the d3d device and I want to get a list of the available backbuffer formats given a mode, adapter, device type, and display format. I tried figuring out where this information is stored by looking through the caps viewer. The information I'm interested in is under 'DirectX Graphics Adapters->NVIDIA GeForce 4... (adapter name)->D3D Device Type->HAL->Adapter Formats-> D3DFMT_X8... (some format)->Back Buffer Formats'. I just can't seem to find where this information is stored and I have to prepare for a meeting now. Any help is appreciated.
njpaul
njpaul
I think I found a way to do it. If I just loop through all the possible backbuffer formats and call CheckDeviceFormat on them I should be able to tell if the format can be used.
njpaul
njpaul
I implemented it and it works. However, I cannot distinguish between fullscreen and windowed.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.