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
Defines export visibility macros for library hwsd.
int pvp[4]
The size and location of the GPU (x,y,w,h).
A structure containing node-specific information.
static const unsigned FLAG_VNC
Virtual device provided by a VNC X server.
HWSD_API std::string getName() const
unsigned type
Four-character code of the GPU type.
HWSD_API bool operator==(const GPUInfo &rhs) const
unsigned port
The display (GLX) or ignored (WGL, AGL).
HWSD_API bool operator!=(const GPUInfo &rhs) const
static const unsigned FLAG_VIRTUALGL_DISPLAY
VirtualGL redirect GPU.
static const unsigned defaultValue
A non-enumerated port or device.
static const unsigned FLAG_VIRTUALGL
Process runs under VirtualGL.
HWSD_API GPUInfo()
Default constructor pointing to the default display.
A structure containing GPU-specific information.
HWSD_API void invalidatePVP()
Invalidate the pixel viewport.
unsigned device
The screen (GLX, WGL), GPU (WGLn, WGLa) or virtual screen (AGL).
unsigned flags
bitmask of additional GPU capabilities