webgl-specs

0.0.0 • Public • Published

webgl-hardware

Detect the specs of a device

Install

# Yarn 
yarn add webgl-hardware
# NPM 
npm install webgl-hardware

Usage

If you have a module loader (webpack or rollup)

import WebGLHardware from 'webgl-hardware';
 
const report = WebGLHardware();
report.unMaskedRenderer // "Intel Iris OpenGL Engine"
report.unMaskedVendor // "Intel Inc."
report.glVersion // "WebGL 1.0 (OpenGL ES 2.0 Chromium)"

If you're not:

<html>
<body>
  <script type="module">
    import WebglHardware from 'https://unpkg.com/webgl-hardware@latest/index.js';
 
    const report = WebGLHardware();
    report.unMaskedRenderer // "Intel Iris OpenGL Engine"
    report.unMaskedVendor // "Intel Inc."
    report.glVersion // "WebGL 1.0 (OpenGL ES 2.0 Chromium)"
  </script> 
</body>
</html>

Prior Art

Readme

Keywords

none

Package Sidebar

Install

npm i webgl-specs

Weekly Downloads

1

Version

0.0.0

License

MIT

Unpacked Size

155 kB

Total Files

12

Last publish

Collaborators

  • amilajack