gl-info
v0.1.0
Published
get GPU parameters through webGL
Downloads
8
Readme
gl-info
get GPU parameters through webGL
Installation
$ npm install gl-info
Example
var gpuReport = require("gl-info");
gpuReport();
Output
{
"platform": "MacIntel",
"userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.116 Safari/537.36",
"webglVersion": 1,
"contextName": "experimental-webgl",
"glVersion": "WebGL 1.0 (OpenGL ES 2.0 Chromium)",
"shadingLanguageVersion": "WebGL GLSL ES 1.0 (OpenGL ES GLSL ES 1.0 Chromium)",
"vendor": "WebKit",
"renderer": "WebKit WebGL",
"unMaskedVendor": "Intel Inc.",
"unMaskedRenderer": "Intel(R) Iris(TM) Graphics 6100",
"antialias": "Available",
"angle": "No",
"majorPerformanceCaveat": "No",
"maxColorBuffers": 8,
"redBits": 8,
"greenBits": 8,
"blueBits": 8,
"alphaBits": 8,
"depthBits": 24,
"stencilBits": 8,
"maxRenderBufferSize": 16384,
"maxCombinedTextureImageUnits": 16,
"maxCubeMapTextureSize": 16384,
"maxFragmentUniformVectors": 1024,
"maxTextureImageUnits": 16,
"maxTextureSize": 16384,
"maxVaryingVectors": 15,
"maxVertexAttributes": 16,
"maxVertexTextureImageUnits": 16,
"maxVertexUniformVectors": 1024,
"aliasedLineWidthRange": [
1,
7
],
"aliasedPointSizeRange": [
1,
255
],
"maxViewportDimensions": [
16384,
16384
],
"maxAnisotropy": 16,
"vertexShaderBestPrecision": {
"high": "[-1.7014118346046923e+38, 1.7014118346046923e+38] (23 bit mantissa)",
"medium": "[-1.7014118346046923e+38, 1.7014118346046923e+38] (23 bit mantissa)",
"low": "[-1.7014118346046923e+38, 1.7014118346046923e+38] (23 bit mantissa)",
"best": "[-2^127, 2^127] (23)"
},
"fragmentShaderBestPrecision": {
"high": "[-1.7014118346046923e+38, 1.7014118346046923e+38] (23 bit mantissa)",
"medium": "[-1.7014118346046923e+38, 1.7014118346046923e+38] (23 bit mantissa)",
"low": "[-1.7014118346046923e+38, 1.7014118346046923e+38] (23 bit mantissa)",
"best": "[-2^127, 2^127] (23)"
},
"fragmentShaderFloatIntPrecision": "highp/highp",
"extensions": [
"ANGLE_instanced_arrays",
"EXT_blend_minmax",
"EXT_disjoint_timer_query",
"EXT_frag_depth",
"EXT_shader_texture_lod",
"EXT_sRGB",
"EXT_texture_filter_anisotropic",
"WEBKIT_EXT_texture_filter_anisotropic",
"OES_element_index_uint",
"OES_standard_derivatives",
"OES_texture_float",
"OES_texture_float_linear",
"OES_texture_half_float",
"OES_texture_half_float_linear",
"OES_vertex_array_object",
"WEBGL_compressed_texture_s3tc",
"WEBKIT_WEBGL_compressed_texture_s3tc",
"WEBGL_debug_renderer_info",
"WEBGL_debug_shaders",
"WEBGL_depth_texture",
"WEBKIT_WEBGL_depth_texture",
"WEBGL_draw_buffers",
"WEBGL_lose_context",
"WEBKIT_WEBGL_lose_context"
]
}
Badges