NEO_csc

Определение Вашей видеокарты

Jan 16th, 2021 (edited)
1,174
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <html>
  2.  
  3. <body>
  4.   <canvas id="glcanvas" width="0" height="0"></canvas>
  5.   <script>
  6.     var performance = window.performance || window.mozPerformance || window.msPerformance || window.webkitPerformance || {};
  7.  
  8.     document.write("<br>");
  9.     for (var value in performance) {
  10.       document.write(value + "<br>");
  11.     }
  12.  
  13.     document.write("<br><br><br>");
  14.  
  15.     var canvas;
  16.     canvas = document.getElementById("glcanvas");
  17.     var gl = canvas.getContext("experimental-webgl");
  18.  
  19.     document.write(gl.getParameter(gl.RENDERER) + "<br>");
  20.     document.write(gl.getParameter(gl.VENDOR) + "<br>");
  21.     document.write(getUnmaskedInfo(gl).vendor + "<br>");
  22.     document.write(getUnmaskedInfo(gl).renderer + "<br>");
  23.  
  24.  
  25.     function getUnmaskedInfo(gl) {
  26.       var unMaskedInfo = {
  27.         renderer: '',
  28.         vendor: ''
  29.       };
  30.  
  31.       var dbgRenderInfo = gl.getExtension("WEBGL_debug_renderer_info");
  32.       if (dbgRenderInfo != null) {
  33.         unMaskedInfo.renderer = gl.getParameter(dbgRenderInfo.UNMASKED_RENDERER_WEBGL);
  34.         unMaskedInfo.vendor = gl.getParameter(dbgRenderInfo.UNMASKED_VENDOR_WEBGL);
  35.       }
  36.  
  37.       return unMaskedInfo;
  38.     }
  39.   </script>
  40. </body>
RAW Paste Data