* @function Util.supportWebGL2 * @description 是否支持 webgl2。 * @private
()
| 292 | * @private |
| 293 | */ |
| 294 | supportWebGL2() { |
| 295 | const canvas = document.createElement('canvas'); |
| 296 | return Boolean(canvas && canvas.getContext('webgl2')); |
| 297 | }, |
| 298 | |
| 299 | /** |
| 300 | * @function Util.isString |
nothing calls this directly
no test coverage detected