GPU-SD
1.4.0
|
A structure containing GPU-specific information. More...
#include <gpuInfo.h>
Public Member Functions | |
GPUInfo () | |
Default constructor pointing to the default display. | |
GPUInfo (const std::string &name) | |
Constructor pointing to default display of a specific GPU type. | |
void | invalidatePVP () |
Invalidate the pixel viewport. | |
bool | operator== (const GPUInfo &rhs) const |
bool | operator!= (const GPUInfo &rhs) const |
std::string | getName () const |
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). | |
std::string | hostname |
remote system hostname, empty for local GPUs | |
std::string | session |
session name: local, default or custom string | |
unsigned | flags |
bitmask of additional GPU capabilities | |
unsigned | unused |
char | dummy [24] |
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. |
gpusd::GPUInfo::GPUInfo | ( | ) | [inline] |
Default constructor pointing to the default display.
Definition at line 41 of file gpuInfo.h.
References invalidatePVP().
gpusd::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.
name | the type of the GPU. |
Definition at line 55 of file gpuInfo.h.
References invalidatePVP(), and type.
std::string gpusd::GPUInfo::getName | ( | ) | const [inline] |
void gpusd::GPUInfo::invalidatePVP | ( | ) | [inline] |
bool gpusd::GPUInfo::operator!= | ( | const GPUInfo & | rhs | ) | const [inline] |
bool gpusd::GPUInfo::operator== | ( | const GPUInfo & | rhs | ) | const [inline] |
const unsigned gpusd::GPUInfo::defaultValue = UINT_MAX [static] |
unsigned gpusd::GPUInfo::device |
The screen (GLX, WGL), GPU (WGLn, WGLa) or virtual screen (AGL).
Definition at line 102 of file gpuInfo.h.
Referenced by operator==().
const unsigned gpusd::GPUInfo::FLAG_VIRTUALGL = 0x1 [static] |
const unsigned gpusd::GPUInfo::FLAG_VIRTUALGL_DISPLAY = 0x2 [static] |
unsigned gpusd::GPUInfo::port |
The display (GLX) or ignored (WGL, AGL).
Definition at line 96 of file gpuInfo.h.
Referenced by operator==().
int gpusd::GPUInfo::pvp[4] |
The size and location of the GPU (x,y,w,h).
Definition at line 105 of file gpuInfo.h.
Referenced by invalidatePVP(), and operator==().
unsigned gpusd::GPUInfo::type |
Four-character code of the GPU type.
Definition at line 93 of file gpuInfo.h.
Referenced by getName(), GPUInfo(), and operator==().