SHARE
TWEET

Untitled

a guest Sep 20th, 2019 84 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <body>
  2.   <canvas id="glcanvas" width="0" height="0"></canvas>
  3.   <script>
  4.     var performance = window.performance || window.mozPerformance || window.msPerformance || window.webkitPerformance || {};
  5.  
  6.     document.write("<br>");
  7.     for (var value in performance) {
  8.       document.write(value + "<br>");
  9.     }
  10.  
  11.     document.write("<br><br><br>");
  12.  
  13.     var canvas;
  14.     canvas = document.getElementById("glcanvas");
  15.     var gl = canvas.getContext("experimental-webgl");
  16.  
  17.     document.write(gl.getParameter(gl.RENDERER) + "<br>");
  18.     document.write(gl.getParameter(gl.VENDOR) + "<br>");
  19.     document.write(getUnmaskedInfo(gl).vendor + "<br>");
  20.     document.write(getUnmaskedInfo(gl).renderer + "<br>");
  21.  
  22.  
  23.     function getUnmaskedInfo(gl) {
  24.       var unMaskedInfo = {
  25.         renderer: '',
  26.         vendor: ''
  27.       };
  28.  
  29.       var dbgRenderInfo = gl.getExtension("WEBGL_debug_renderer_info");
  30.       if (dbgRenderInfo != null) {
  31.         unMaskedInfo.renderer = gl.getParameter(dbgRenderInfo.UNMASKED_RENDERER_WEBGL);
  32.         unMaskedInfo.vendor = gl.getParameter(dbgRenderInfo.UNMASKED_VENDOR_WEBGL);
  33.       }
  34.  
  35.       return unMaskedInfo;
  36.     }
  37.   </script>
  38. </body>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top