18 #ifndef HWSD_GPUINFO_H
19 #define HWSD_GPUINFO_H
22 #include <hwsd/nodeInfo.h>
56 HWSD_API
GPUInfo(
const std::string& name );
68 HWSD_API std::string
getName()
const;
89 inline std::ostream& operator << ( std::ostream& os,
const GPUInfo& info )
91 os <<
"GPUInfo\n" <<
static_cast< const NodeInfo&
>( info );
93 os <<
" Type " << info.
getName() << std::endl;
95 os <<
" Port " << info.
port << std::endl;
97 os <<
" Device " << info.
device << std::endl;
98 if( info.
pvp[2] >0 && info.
pvp[3] > 0 )
99 os <<
" Viewport [" << info.
pvp[0] <<
' ' << info.
pvp[1] <<
' '
100 << info.
pvp[2] <<
' ' << info.
pvp[3] <<
']' << std::endl;
101 if( info.
flags != 0 )
110 #endif // HWSD_GPUINFO_H
Defines export visibility macros for hwsd.
int pvp[4]
The size and location of the GPU (x,y,w,h).
A structure containing node-specific information.
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