glsl-token-extension-dedupe
Given a series of GLSL tokens, dedupes any extension declarations and places them at the top of the shader source
Last updated 5 years ago by hughsk .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install glsl-token-extension-dedupe 
SYNC missed versions from official npm registry.

glsl-token-extension-dedupe

stable

Given a series of GLSL tokens, dedupes any extension declarations and places them at the top of the shader source.

Usage

NPM

dedupe(tokens)

Modifies tokens in place to remove duplicate extension declarations. Declarations take the following priority from lowest to highest:

  • disable
  • enable
  • warn
  • require

If a declaration of higher priority in the list exists it will replace any other declarations. This can cause issues, for example, if both disable and enable are used for the same extension. As such it's recommended that you avoid using disable at all in glslify packages published to npm.

Contributing

See stackgl/contributing for details.

License

MIT. See LICENSE.md for details.

Current Tags

  • 1.0.0                                ...           latest (5 years ago)

1 Versions

  • 1.0.0                                ...           5 years ago
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (0)
None
Dev Dependencies (2)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |