A structure containing GPU-specific information.
More...
#include <gpuInfo.h>
Public Attributes |
unsigned | type |
| Four-character code of the GPU type.
|
unsigned | port |
| The display (GLX) or ignored (WGL, AGL).
|
unsigned | device |
| The screen (GLX, WGL), GPU (WGLn, WGLa) or virtual screen (AGL).
|
int | pvp [4] |
| The size and location of the GPU (x,y,w,h).
|
unsigned | flags |
| bitmask of additional GPU capabilities
|
unsigned | unused |
char | dummy [32] |
| Buffer for binary-compatible additions.
|
lunchbox::UUID | id |
| Random unique ID identifing the origin node.
|
std::string | nodeName |
| System hostname if remote, empty for local.
|
std::string | session |
| The session name: local, default or custom string.
|
char | dummy [32] |
| Buffer for binary-compatible additions.
|
Static Public Attributes |
static const unsigned | defaultValue = UINT_MAX |
| A non-enumerated port or device.
|
static const unsigned | FLAG_VIRTUALGL = 0x1 |
| Process runs under VirtualGL.
|
static const unsigned | FLAG_VIRTUALGL_DISPLAY = 0x2 |
| VirtualGL redirect GPU.
|
Detailed Description
A structure containing GPU-specific information.
Definition at line 32 of file gpuInfo.h.
Constructor & Destructor Documentation
hwsd::GPUInfo::GPUInfo |
( |
| ) |
|
|
inline |
Default constructor pointing to the default display.
- Version
- 1.0
Definition at line 44 of file gpuInfo.h.
References invalidatePVP().
hwsd::GPUInfo::GPUInfo |
( |
const std::string & |
name | ) |
|
|
inline |
Constructor pointing to default display of a specific GPU type.
The information name is a type code of four characters. The passed string is formatted accordingly.
- Parameters
-
- Version
- 1.0
Definition at line 58 of file gpuInfo.h.
References invalidatePVP(), and type.
Member Function Documentation
std::string hwsd::GPUInfo::getName |
( |
| ) |
const |
|
inline |
- Returns
- the type name string of this information.
- Version
- 1.0
Definition at line 91 of file gpuInfo.h.
References type.
void hwsd::GPUInfo::invalidatePVP |
( |
| ) |
|
|
inline |
Invalidate the pixel viewport.
- Version
- 1.0
Definition at line 67 of file gpuInfo.h.
References pvp.
Referenced by GPUInfo().
bool hwsd::GPUInfo::operator!= |
( |
const GPUInfo & |
rhs | ) |
const |
|
inline |
- Returns
- true if both infos are not identical.
- Version
- 1.0
Definition at line 85 of file gpuInfo.h.
bool hwsd::GPUInfo::operator== |
( |
const GPUInfo & |
rhs | ) |
const |
|
inline |
Member Data Documentation
const unsigned hwsd::GPUInfo::defaultValue = UINT_MAX |
|
static |
A non-enumerated port or device.
- Version
- 1.0
Definition at line 35 of file gpuInfo.h.
unsigned hwsd::GPUInfo::device |
The screen (GLX, WGL), GPU (WGLn, WGLa) or virtual screen (AGL).
- Version
- 1.0
Definition at line 104 of file gpuInfo.h.
Referenced by operator==().
const unsigned hwsd::GPUInfo::FLAG_VIRTUALGL = 0x1 |
|
static |
Process runs under VirtualGL.
- Version
- 1.1.2
Definition at line 38 of file gpuInfo.h.
const unsigned hwsd::GPUInfo::FLAG_VIRTUALGL_DISPLAY = 0x2 |
|
static |
VirtualGL redirect GPU.
- Version
- 1.1.2
Definition at line 41 of file gpuInfo.h.
unsigned hwsd::GPUInfo::port |
The display (GLX) or ignored (WGL, AGL).
- Version
- 1.0
Definition at line 98 of file gpuInfo.h.
Referenced by operator==().
int hwsd::GPUInfo::pvp[4] |
unsigned hwsd::GPUInfo::type |
The documentation for this struct was generated from the following file: