Information for a GPU device.
More...
Information for a GPU device.
For each rendering device, this class contains a list of every supported pixel format for rendering. Devices are hardware, software, or reference. A copy of the D3DCAPS9 for the rendering device is also stored in this class
https://msdn.microsoft.com/en-us/library/windows/desktop/bb172513(v=vs.85).aspx
- See also
- BufferFormatGroup or AdapterInfo
◆ DeviceInfo()
Burger::DisplayDirectX9::DeviceInfo::DeviceInfo |
( |
uint_t | uAdapterOrdinal, |
|
|
uint_t | uDeviceType ) |
Create a default DeviceInfo.
Zero out the D3DCAPS9 record and the list and set the description defaults to the passed in values.
- Parameters
-
uAdapterOrdinal | Ordinal value for this adapter from DirectX 9 |
uDeviceType | Device type of adapter (Hardware/Software) |
◆ ~DeviceInfo()
Burger::DisplayDirectX9::DeviceInfo::~DeviceInfo |
( |
| ) |
|
◆ AddToList()
Add a BufferFormatGroup * to the list.
Add the passed in pointer to the end of an internal list of entries that belong to this adapter.
- Parameters
-
◆ Find()
Search for a BufferFormatGroup.
Given an adapter driver format, a back buffer format and if it's windowed, locate the BufferFormatGroup that matches the criteria.
- Parameters
-
uAdapterFormat | Hardware/Software format |
uBackBufferFormat | D3DFORMAT of the back buffer |
bWindowed | TRUE if in a window, FALSE if full screen. |
- Returns
- A pointer to a BufferFormatGroup * entry or NULL if not found
◆ GetAdapterOrdinal()
uint_t Burger::DisplayDirectX9::DeviceInfo::GetAdapterOrdinal |
( |
void | | ) |
const |
|
inline |
Get the adapter ordinal.
const
\return The adapter ordinal for which adapter this class is describing.
◆ GetBufferList()
BufferFormatGroup *const * Burger::DisplayDirectX9::DeviceInfo::GetBufferList |
( |
void | | ) |
const |
|
inline |
◆ GetBufferListSize()
uintptr_t Burger::DisplayDirectX9::DeviceInfo::GetBufferListSize |
( |
void | | ) |
const |
|
inline |
◆ GetCaps()
const _D3DCAPS9 * Burger::DisplayDirectX9::DeviceInfo::GetCaps |
( |
void | | ) |
const |
|
inline |
Obtain a pointer to the contained D3DCAPS9 structure.
Use this accessor to query the D3DCAPS9 for this specific rendering device.
- Note
- This is a read-only pointer by design. The contents are managed internally.
- Returns
- Read-only pointer to the D3DCAP9 data in this structure.
◆ GetDeviceType()
uint_t Burger::DisplayDirectX9::DeviceInfo::GetDeviceType |
( |
void | | ) |
const |
|
inline |
Get the adapter device type.
- Returns
- The adapter device type for which adapter this class is describing.
◆ m_BufferFormatList
All of the settings for this device.
◆ m_D3DCaps
uint32_t Burger::DisplayDirectX9::DeviceInfo::m_D3DCaps[76] |
|
private |
◆ m_uAdapterOrdinal
uint_t Burger::DisplayDirectX9::DeviceInfo::m_uAdapterOrdinal |
|
private |
◆ m_uDeviceType
uint_t Burger::DisplayDirectX9::DeviceInfo::m_uDeviceType |
|
private |