Information for a GPU device. More...
Public Member Functions | |
DeviceInfo (uint_t uAdapterOrdinal, uint_t uDeviceType) | |
Create a default DeviceInfo. | |
~DeviceInfo () | |
Dispose of a DeviceInfo. | |
uint_t | GetAdapterOrdinal (void) const |
Get the adapter ordinal. | |
uint_t | GetDeviceType (void) const |
Get the adapter device type. | |
const _D3DCAPS9 * | GetCaps (void) const |
Obtain a pointer to the contained D3DCAPS9 structure. | |
uintptr_t | GetBufferListSize (void) const |
Get number of BufferFormatGroup entries stored in this class. | |
BufferFormatGroup *const * | GetBufferList (void) const |
Get the pointer to the base of the BufferFormatGroup * array. | |
void | AddToList (BufferFormatGroup *pBufferFormatGroup) |
Add a BufferFormatGroup * to the list. | |
const BufferFormatGroup * | Find (uint_t uAdapterFormat, uint_t uBackBufferFormat, uint_t bWindowed) const |
Search for a BufferFormatGroup. | |
Private Attributes | |
uint_t | m_uAdapterOrdinal |
Device ordinal type. | |
uint_t | m_uDeviceType |
D3DDEVTYPE. | |
uint32_t | m_D3DCaps [76] |
D3DCAPS9 record. | |
SimpleArray< BufferFormatGroup * > | m_BufferFormatList |
All of the settings for this device. | |
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
Create a default DeviceInfo.
Zero out the D3DCAPS9 record and the list and set the description defaults to the passed in values.
uAdapterOrdinal | Ordinal value for this adapter from DirectX 9 |
uDeviceType | Device type of adapter (Hardware/Software) |
Burger::DisplayDirectX9::DeviceInfo::~DeviceInfo | ( | ) |
Dispose of a DeviceInfo.
All BufferFormatGroup pointers added to this class are disposed of in the destructor.
void BURGER_API Burger::DisplayDirectX9::DeviceInfo::AddToList | ( | BufferFormatGroup * | pBufferFormatGroup | ) |
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.
pBufferFormatGroup | A pointer to a BufferFormatGroup * entry |
const Burger::DisplayDirectX9::BufferFormatGroup *BURGER_API Burger::DisplayDirectX9::DeviceInfo::Find | ( | uint_t | uAdapterFormat, |
uint_t | uBackBufferFormat, | ||
uint_t | bWindowed ) const |
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.
uAdapterFormat | Hardware/Software format |
uBackBufferFormat | D3DFORMAT of the back buffer |
bWindowed | TRUE if in a window, FALSE if full screen. |
Get the adapter ordinal.
const
\return The adapter ordinal for which adapter this class is describing.
|
inline |
Get the pointer to the base of the BufferFormatGroup * array.
Get number of BufferFormatGroup entries stored in this class.
Obtain a pointer to the contained D3DCAPS9 structure.
Use this accessor to query the D3DCAPS9 for this specific rendering device.
Get the adapter device type.
|
private |
All of the settings for this device.
|
private |
D3DCAPS9 record.
|
private |
Device ordinal type.
|
private |
D3DDEVTYPE.