18 #ifndef HWSD_GPUINFO_H
19 #define HWSD_GPUINFO_H
22 #include <hwsd/nodeInfo.h>
61 HWSD_API
explicit GPUInfo(
const std::string& name );
73 HWSD_API std::string
getName()
const;
94 inline std::ostream& operator << ( std::ostream& os,
const GPUInfo& info )
96 os <<
"GPUInfo\n" <<
static_cast< const NodeInfo&
>( info );
98 os <<
" Type " << info.
getName() << std::endl;
100 os <<
" Port " << info.
port << std::endl;
102 os <<
" Device " << info.
device << std::endl;
103 if( info.
pvp[2] >0 && info.
pvp[3] > 0 )
104 os <<
" Viewport [" << info.
pvp[0] <<
' ' << info.
pvp[1] <<
' '
105 << info.
pvp[2] <<
' ' << info.
pvp[3] <<
']' << std::endl;
106 if( info.
flags != 0 )
115 #endif // HWSD_GPUINFO_H
bool operator==(const GPUInfo &rhs) const
Defines export visibility macros for library hwsd.
int pvp[4]
The size and location of the GPU (x,y,w,h).
GPUInfo()
Default constructor pointing to the default display.
A structure containing node-specific information.
static const unsigned FLAG_VNC
Virtual device provided by a VNC X server.
unsigned type
Four-character code of the GPU type.
unsigned port
The display (GLX) or ignored (WGL, AGL).
static const unsigned FLAG_VIRTUALGL_DISPLAY
VirtualGL redirect GPU.
void invalidatePVP()
Invalidate the pixel viewport.
bool operator!=(const GPUInfo &rhs) const
static const unsigned defaultValue
A non-enumerated port or device.
static const unsigned FLAG_VIRTUALGL
Process runs under VirtualGL.
A structure containing GPU-specific information.
std::string getName() const
unsigned device
The screen (GLX, WGL), GPU (WGLn, WGLa) or virtual screen (AGL).
unsigned flags
bitmask of additional GPU capabilities