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`
- Host: GitHub
- URL: https://github.com/stackgl/gl-shader-errors
- Owner: stackgl
- License: other
- Created: 2014-09-05T22:15:58.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2014-09-05T22:32:50.000Z (almost 12 years ago)
- Last Synced: 2025-04-15T16:52:53.563Z (about 1 year ago)
- Language: JavaScript
- Size: 129 KB
- Stars: 5
- Watchers: 11
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# gl-shader-errors [](http://github.com/badges/stability-badges)
"Parses" the log output of `gl.getShaderInfoLog` to get separate error objects.
## Usage
[](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.