18 #ifndef HWSD_GPUINFO_H
19 #define HWSD_GPUINFO_H
21 #include <hwsd/nodeInfo.h>
63 strncpy( reinterpret_cast< char* >( &
type ), name.c_str(), 4 );
78 return ( NodeInfo::operator==( rhs ) &&
type == rhs.
type &&
87 return !(*
this == rhs );
92 {
return std::string( reinterpret_cast<const char*>( &
type ), 4 ); }
114 inline std::ostream& operator << ( std::ostream& os,
const GPUInfo& info )
116 os <<
"GPUInfo\n" <<
static_cast< const NodeInfo&
>( info );
118 os <<
" Type " << info.
getName() << std::endl;
120 os <<
" Port " << info.
port << std::endl;
122 os <<
" Device " << info.
device << std::endl;
123 if( info.
pvp[2] >0 && info.
pvp[3] > 0 )
124 os <<
" Viewport [" << info.
pvp[0] <<
' ' << info.
pvp[1] <<
' '
125 << info.
pvp[2] <<
' ' << info.
pvp[3] <<
']' << std::endl;
126 if( info.
flags != 0 )
135 #endif // HWSD_GPUINFO_H