You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -838,6 +839,22 @@ This is a list of the supported ones:
838
839
*`Math.sqrt()`
839
840
*`Math.tan()`
840
841
842
+
## How to check what is supported
843
+
844
+
To assist with mostly unit tests, but perhaps in scenarios outside of GPU.js, there are the following logical checks to determine what support level the system executing a GPU.js kernel may have:
845
+
*`GPU.disableValidation()` - turn off all kernel validation
846
+
*`GPU.enableValidation()` - turn on all kernel validation
847
+
*`GPU.isGPUSupported`: `boolean` - checks if GPU is in-fact supported
848
+
*`GPU.isKernelMapSupported`: `boolean` - checks if kernel maps are supported
849
+
*`GPU.isOffscreenCanvasSupported`: `boolean` - checks if offscreen canvas is supported
850
+
*`GOU.isWebGLSupported`: `boolean` - checks if WebGL v1 is supported
851
+
*`GOU.isWebGL2Supported`: `boolean` - checks if WebGL v2 is supported
852
+
*`GPU.isHeadlessGLSupported`: `boolean` - checks if headlessgl is supported
853
+
*`GPU.isCanvasSupported`: `boolean` - checks if canvas is supported
854
+
*`GPU.isGPUHTMLImageArraySupported`: `boolean` - checks if the platform supports HTMLImageArray's
855
+
*`GPU.isSinglePrecisionSupported`: `boolean` - checks if the system supports single precision float 32 values
856
+
```
857
+
841
858
## Typescript Typings
842
859
Typescript is supported! Typings can be found [here](src/index.d.ts)!
0 commit comments