GPU-SD  1.4.0
Public Member Functions | Public Attributes | Static Public Attributes
gpusd::GPUInfo Struct Reference

A structure containing GPU-specific information. More...

#include <gpuInfo.h>

+ Collaboration diagram for gpusd::GPUInfo:

List of all members.

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.

Detailed Description

A structure containing GPU-specific information.

Definition at line 29 of file gpuInfo.h.


Constructor & Destructor Documentation

Default constructor pointing to the default display.

Version:
1.0

Definition at line 41 of file gpuInfo.h.

References invalidatePVP().

+ Here is the call graph for this function:

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.

Parameters:
namethe type of the GPU.
Version:
1.0

Definition at line 55 of file gpuInfo.h.

References invalidatePVP(), and type.

+ Here is the call graph for this function:


Member Function Documentation

std::string gpusd::GPUInfo::getName ( ) const [inline]
Returns:
the type name string of this information.
Version:
1.0

Definition at line 89 of file gpuInfo.h.

References type.

void gpusd::GPUInfo::invalidatePVP ( ) [inline]

Invalidate the pixel viewport.

Version:
1.0

Definition at line 64 of file gpuInfo.h.

References pvp.

Referenced by GPUInfo().

+ Here is the caller graph for this function:

bool gpusd::GPUInfo::operator!= ( const GPUInfo rhs) const [inline]
Returns:
true if both infos are not identical.
Version:
1.0

Definition at line 83 of file gpuInfo.h.

bool gpusd::GPUInfo::operator== ( const GPUInfo rhs) const [inline]
Returns:
true if both informations are identical.
Version:
1.0

Definition at line 73 of file gpuInfo.h.

References device, hostname, port, pvp, session, and type.


Member Data Documentation

const unsigned gpusd::GPUInfo::defaultValue = UINT_MAX [static]

A non-enumerated port or device.

Version:
1.0

Definition at line 32 of file gpuInfo.h.

The screen (GLX, WGL), GPU (WGLn, WGLa) or virtual screen (AGL).

Version:
1.0

Definition at line 102 of file gpuInfo.h.

Referenced by operator==().

const unsigned gpusd::GPUInfo::FLAG_VIRTUALGL = 0x1 [static]

Process runs under VirtualGL.

Version:
1.1.2

Definition at line 35 of file gpuInfo.h.

const unsigned gpusd::GPUInfo::FLAG_VIRTUALGL_DISPLAY = 0x2 [static]

VirtualGL redirect GPU.

Version:
1.1.2

Definition at line 38 of file gpuInfo.h.

The display (GLX) or ignored (WGL, AGL).

Version:
1.0

Definition at line 96 of file gpuInfo.h.

Referenced by operator==().

The size and location of the GPU (x,y,w,h).

Version:
1.0

Definition at line 105 of file gpuInfo.h.

Referenced by invalidatePVP(), and operator==().

Four-character code of the GPU type.

Version:
1.0

Definition at line 93 of file gpuInfo.h.

Referenced by getName(), GPUInfo(), and operator==().


The documentation for this struct was generated from the following file:
Generated on Mon Jul 16 2012 11:27:39 for GPU-SD 1.4.0 by  doxygen 1.7.6.1