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

https://github.com/stackgl/gl-shader-errors

"Parses" the log output of `gl.getShaderInfoLog`
https://github.com/stackgl/gl-shader-errors

Last synced: about 1 year ago
JSON representation

"Parses" the log output of `gl.getShaderInfoLog`

Awesome Lists containing this project

README

          

# gl-shader-errors [![experimental](http://badges.github.io/stability-badges/dist/experimental.svg)](http://github.com/badges/stability-badges)

"Parses" the log output of `gl.getShaderInfoLog` to get separate error objects.

## Usage

[![NPM](https://nodei.co/npm/gl-shader-errors.png)](https://nodei.co/npm/gl-shader-errors/)

### `errors = parse(log)`

Where `log` is the string output of `gl.getShaderInfoLog`, return an array
of errors with the following properties:

* `message`: the error message
* `line`: the line the error appears in the shader.
* `file`: the file ID that the error appears in.

## License

MIT. See [LICENSE.md](http://github.com/stackgl/gl-shader-errors/blob/master/LICENSE.md) for details.