const canvas = document.createElement('canvas');
const gl = canvas.getContext('webgl');
const debugInfo = gl.getExtension('WEBGL_debug_renderer_info');
//图形驱动程序的供应商字符串
console.log( gl.getParameter(debugInfo.UNMASKED_VENDOR_WEBGL) );
//图形驱动程序的渲染器字符串
console.log( gl.getParameter(debugInfo.UNMASKED_RENDERER_WEBGL) );
浏览器获取gpu型号
于 2023-07-13 13:58:24 首次发布