Module for checking if certain browser features are available, and for getting WebGL context parameters.
Checks if a WebGL 1.0 context can be obtained.
Checks if a WebGL 2.0 context can be obtained.
Checks if Web Workers API is available.
Returns last API namespace found in the list: File, FileReader, FileList, Blob.
Creates an HTML element with the WebGL non-availability message and the link to the troubleshooting page.
Generates and shows the WebGL non-availability message by appending it as child to the specified element (or document body if no element is specified).
Retrieves user agent information and finds if it is running on iPhone, iPad, or iPod.
Retrieves user agent information and finds if it is running on Android.
Check if float textures are available for rendering.
Check if half-float textures are available for rendering.
Check if you can read pixels from half-float render target.
Check if you can read pixels from float render target.
Check if depth textures are available for rendering.
Returns the UNMASKED_VENDOR_WEBGL parameter of the WEBGL_debug_renderer_info extension. If the latter is not present, returns empty string value.
Returns the UNMASKED_RENDERER_WEBGL parameter of the WEBGL_debug_renderer_info extension. If the latter is not present, returns empty string value.
Check if WebXR API (VR) API is available.
Check if only Swift Shader software rasterizer is available for rendering.
Check if WebAudio API is available.
Check if touch device is available.
The feature available and get GPU puzzles allow to access most of these methods without coding.
For more info on how to obtain the source code of this module see this page.