detect-features
Version:
Detect and report browser and hardware features.
200 lines (199 loc) • 6.98 kB
JSON
{
"browserFeatures": {
"browserType": {
"browserEngineName": "WebKit",
"browserEngineVersion": "537.36",
"browserName": "Oculus Browser",
"browserVersion": "4.5.1.108860099",
"deviceModel": "Browser",
"deviceType": "mobile",
"deviceVendor": "Samsung",
"operatingSystemName": "Android",
"operatingSystemVersion": "7.1.2"
},
"isGamepadSupported": true,
"isIndexedDBSupported": true,
"isLocalStorageSupported": true,
"isPerformanceSupported": true,
"isRequestIdleCallbackSupported": true,
"isServiceWorkerSupported": true,
"isWebAssemblySupported": true,
"isWebAudioSupported": true,
"isWebGL2Supported": true,
"isWebGLSupported": true,
"isWebRTCSupported": true,
"isWebSocketSupported": true,
"isWebVRSupported": true,
"isWebWorkerSupported": true,
"isWebXRSupported": false,
"webGL2Features": {
"base": {
"shaderVersion": "WebGL GLSL ES 3.00 (OpenGL ES GLSL ES 3.0 Chromium)",
"renderer": "WebKit WebGL",
"rendererUnmasked": "Adreno (TM) 530",
"vendor": "WebKit",
"vendorUnmasked": "Qualcomm",
"version": "WebGL 2.0 (OpenGL ES 3.0 Chromium)"
},
"general": {
"aliasedLineWidthRange": "1,8",
"aliasedPointSizeRange": "1,1023",
"alphaBits": 8,
"antialias": true,
"blueBits": 8,
"depthBits": 24,
"greenBits": 8,
"maxCombinedTextureImageUnits": 96,
"maxCubeMapTextureSize": 16384,
"maxFragmentUniformVectors": 256,
"maxRenderBufferSize": 16384,
"maxTextureImageUnits": 16,
"maxTextureSize": 4096,
"maxVaryingVectors": 31,
"maxVertexAttributes": 32,
"maxVertexTextureImageUnits": 16,
"maxVertexUniformVectors": 256,
"maxViewportDimensions": "16384,16384",
"precision": {
"fragmentShaderHighPrecision": "127,127,23",
"fragmentShaderLowPrecision": "15,15,10",
"fragmentShaderMediumPrecision": "15,15,10",
"vertexShaderHighPrecision": "127,127,23",
"vertexShaderLowPrecision": "127,127,23",
"vertexShaderMediumPrecision": "127,127,23"
},
"redBits": 8,
"stencilBits": 8,
"subPixelBits": 4
},
"extensions": {
"maxAnisotropy": 16,
"supportedExtensions": {
"EXT_color_buffer_float": true,
"EXT_disjoint_timer_query_webgl2": true,
"EXT_texture_filter_anisotropic": true,
"OES_texture_float_linear": true,
"WEBGL_compressed_texture_astc": true,
"WEBGL_compressed_texture_atc": true,
"WEBGL_compressed_texture_etc": true,
"WEBGL_compressed_texture_etc1": true,
"WEBGL_debug_renderer_info": true,
"WEBGL_debug_shaders": true,
"WEBGL_lose_context": true
}
},
"specific": {
"max3DTextureSize": 2048,
"maxArrayTextureLayers": 2048,
"maxClientWaitTimeout": 0,
"maxColorAttachments": 8,
"maxCombinedFragmentUniformComponents": 230400,
"maxCombinedVertexUniformComponents": 230400,
"maxCombinedUniformBlocks": 84,
"maxDrawBuffers": 8,
"maxElementIndex": 2147483647,
"maxElementsIndices": 2147483647,
"maxElementsVertices": 2147483647,
"maxFragmentInputComponents": 128,
"maxFragmentUniformBlocks": 14,
"maxFragmentUniformComponents": 1024,
"maxProgramTexelOffset": 7,
"maxSamples": 4,
"maxServerWaitTimeout": 0,
"maxTextureLODBias": 16,
"maxTransformFeedbackInterleavedComponents": 128,
"maxTransformFeedbackSeparateAttribs": 4,
"maxTransformFeedbackSeparateComponents": 4,
"maxUniformBlockSize": 65536,
"maxUniformBufferBindings": 84,
"maxVaryingComponents": 124,
"maxVertexUniformBlocks": 14,
"maxVertexOutputComponents": 128,
"maxVertexUniformComponents": 1024,
"minProgramTexelOffset": -8,
"uniformBufferOffsetAlignment": 32
}
},
"webGLFeatures": {
"base": {
"shaderVersion": "WebGL GLSL ES 1.0 (OpenGL ES GLSL ES 1.0 Chromium)",
"renderer": "WebKit WebGL",
"rendererUnmasked": "Adreno (TM) 530",
"vendor": "WebKit",
"vendorUnmasked": "Qualcomm",
"version": "WebGL 1.0 (OpenGL ES 2.0 Chromium)"
},
"general": {
"aliasedLineWidthRange": "1,8",
"aliasedPointSizeRange": "1,1023",
"alphaBits": 8,
"antialias": true,
"blueBits": 8,
"depthBits": 24,
"greenBits": 8,
"maxCombinedTextureImageUnits": 96,
"maxCubeMapTextureSize": 16384,
"maxFragmentUniformVectors": 256,
"maxRenderBufferSize": 16384,
"maxTextureImageUnits": 16,
"maxTextureSize": 4096,
"maxVaryingVectors": 31,
"maxVertexAttributes": 32,
"maxVertexTextureImageUnits": 16,
"maxVertexUniformVectors": 256,
"maxViewportDimensions": "16384,16384",
"precision": {
"fragmentShaderHighPrecision": "127,127,23",
"fragmentShaderLowPrecision": "15,15,10",
"fragmentShaderMediumPrecision": "15,15,10",
"vertexShaderHighPrecision": "127,127,23",
"vertexShaderLowPrecision": "127,127,23",
"vertexShaderMediumPrecision": "127,127,23"
},
"redBits": 8,
"stencilBits": 8,
"subPixelBits": 4
},
"extensions": {
"maxAnisotropy": 16,
"maxDrawBuffers": 0,
"supportedExtensions": {
"ANGLE_instanced_arrays": true,
"EXT_blend_minmax": true,
"EXT_disjoint_timer_query": true,
"EXT_sRGB": true,
"EXT_texture_filter_anisotropic": true,
"WEBKIT_EXT_texture_filter_anisotropic": true,
"OES_element_index_uint": true,
"OES_standard_derivatives": true,
"OES_texture_float": true,
"OES_texture_float_linear": true,
"OES_texture_half_float": true,
"OES_texture_half_float_linear": true,
"OES_vertex_array_object": true,
"WEBGL_compressed_texture_astc": true,
"WEBGL_compressed_texture_atc": true,
"WEBKIT_WEBGL_compressed_texture_atc": true,
"WEBGL_compressed_texture_etc1": true,
"WEBGL_debug_renderer_info": true,
"WEBGL_debug_shaders": true,
"WEBGL_depth_texture": true,
"WEBKIT_WEBGL_depth_texture": true,
"WEBGL_lose_context": true,
"WEBKIT_WEBGL_lose_context": true
}
}
}
},
"browserSettings": {
"isCookieEnabled": true,
"isDoNotTrackEnabled": true
},
"hardwareFeatures": {
"devicePixelRatio": 1,
"endianness": "little",
"screenSize": "800,450",
"workerPoolSize": 4,
"windowSize": "800,450"
}
}