Menu

[r200]: / trunk / hw.h  Maximize  Restore  History

Download this file

80 lines (70 with data), 2.2 kB

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
#include <list>
#include <string>
//
// CPU
//
int getNumCpus();
std::string getCpuName();
std::string getCpuSignature();
// CPU capabilities
bool hasCpuID();
std::string getCpuVendorID();
int getCpuFeatureFlags();
int getCpuFeatureFlags2();
bool hasCpuX87MathCoprocessor();
bool hasCpuMMX();
bool hasCpuSSE();
bool hasCpuSSE2();
bool hasCpuAVX();
//
// Memory
//
double getMemoryTotal();
//
// GPU
//
#if !defined( NO_GRAPHICS_TESTS )
std::string getGpuVendor();
std::string getGpuRendererString();
std::string getGpuVersionString();
std::string getGpuGLSLVersionString();
const std::list<std::string>& getGpuExtensions();
const std::list<std::string>& getGuiExtensions();
int getGpuMaxTextureSize();
std::string getGLXVersionString();
std::string getGLXServerVendorString();
std::string getGLXClientVendorString();
std::string getEGLVendorString();
std::string getEGLVersionString();
std::string getEGLClientAPIsString();
void getDisplayAttributes(int *width, int *height, int *bpp, int *freq);
bool getMultisamplingActive();
void printFBConfig();
enum GpuCapability { BEGIN_END, CLIENT_SIDE_VA, VBO, VAO,
TRANSFORMATIONS, ACCUM_BUFFER, INDEXED_GET_EXTENSIONS,
FRAMEBUFFER, ES_PROFILE,
FIXED_PIPELINE, SHADERS, COMPATIBILITY_SHADERS, CORE_SHADERS,
VERTEX_SHADER, FRAGMENT_SHADER, GEOMETRY_SHADER,
GEOMETRY_SHADER_EXT, GEOMETRY_SHADER_32, GEOMETRY_SHADER_40,
COMPUTE_SHADER, MULTI_DRAW_INDIRECT,
TEXTURE_RGBA8, TEXTURE_RGBA32F, IMAGE_TEXTURE,
SHADER_STORAGE_BUFFER, GET_INTEGER_64,
MULTISAMPLING,
BINDLESS_TEXTURE
};
bool hasGpuCapability( GpuCapability capability );
void updateGpuInfo();
#endif
//
// OS
//
std::string getOSName();
std::string getOSDistributionName();
std::string getOSVersionNumber();
std::string getOSServicePack();
std::string getOSDistributionRelease();
std::string getOSDistributionCodeName();
std::string getOSDistributionDescription();
std::string getOSDistributionHomepage();
std::string getOSKernelInfo();
std::string getOSExtraInfo();