An open API service indexing awesome lists of open source software.

https://github.com/amilajack/webgl-specs

Detect the graphics specs of a device using web APIs
https://github.com/amilajack/webgl-specs

hardware specs webgl

Last synced: 6 months ago
JSON representation

Detect the graphics specs of a device using web APIs

Awesome Lists containing this project

README

          

webgl-specs
===========
Detect the graphics specs of a device using web APIs

## Install
```bash
# Yarn
yarn add webgl-specs
# NPM
npm install webgl-specs
```

## Why?
This is useful when you want to render lower quality graphics for low powered devices

## Usage
If you have a module loader (webpack or rollup)
```js
import WebglSpecs from 'webgl-specs';

const report = WebglSpecs();
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


import WebglSpecs from 'https://unpkg.com/webgl-specs@latest/index.js';

const report = WebglSpecs();
report.unMaskedRenderer // "Intel Iris OpenGL Engine"
report.unMaskedVendor // "Intel Inc."
report.glVersion // "WebGL 1.0 (OpenGL ES 2.0 Chromium)"

```

## Testing
```bash
yarn start
```

## Prior Art
* [webglreport](https://github.com/AnalyticalGraphicsInc/webglreport)