18 #ifndef HWSD_GPUINFO_H 19 #define HWSD_GPUINFO_H 22 #include <hwsd/nodeInfo.h> 65 HWSD_API
explicit GPUInfo(
const std::string& name);
77 HWSD_API std::string
getName()
const;
98 inline std::ostream& operator<<(std::ostream& os,
const GPUInfo& info)
100 os <<
"GPUInfo\n" <<
static_cast<const NodeInfo&
>(info);
102 os <<
" Type " << info.
getName() << std::endl;
103 os <<
" Port " << info.
port << std::endl;
104 os <<
" Device " << info.
device << std::endl;
105 if (info.
pvp[2] > 0 && info.
pvp[3] > 0)
106 os <<
" Viewport [" << info.
pvp[0] <<
' ' << info.
pvp[1] <<
' ' 107 << info.
pvp[2] <<
' ' << info.
pvp[3] <<
']' << std::endl;
117 #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.
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_DEFAULT
Default GPU pointed by the DISPLAY variable (GLX only).
static const unsigned FLAG_VIRTUALGL_DISPLAY
VirtualGL redirect GPU.
void invalidatePVP()
Invalidate the pixel viewport.
bool operator!=(const GPUInfo &rhs) const
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