@webgpu/glslang
This is a GLSL-to-SPIR-V compiler for the Web and Node. It is a WebAssembly build of [glslang](https://github.com/KhronosGroup/glslang).
Last updated 7 years ago by kainino .
glslang/LICENSE.txt · Repository · Original npm · Tarball · package.json
$ npm install @webgpu/glslang 
SYNC missed versions from official npm registry.

@webgpu/glslang

This is a GLSL-to-SPIR-V compiler for the Web and Node. It is a WebAssembly build of glslang.

There are several build configurations:

  • dist/web-min-nocompute: Build for web with only vertex/fragment support and no GLSL compilation messages.
  • dist/web-devel-nocompute: Build for web with only vertex/fragment support.
  • dist/web-devel: Build for web with all features.
  • dist/node-devel: Build for Node with non-async startup and all features. (To use this, just import @webgpu/glslang.)

Re-building

You shouldn't need to do this, but here is how you can regenerate the files in dist/. This should work on macOS (with GNU Bison) and on Linux.

Setup

  • Make sure Emscripten is on the path (e.g. with emsdk, do source emsdk_env.sh first).
  • Make sure you have a recent version of GNU Bison installed.
  • Install brotli, cmake, and any other necessary build tools.

Build

  • Optionally, clean by deleting build/.
  • Run build.sh.

Current Tags

  • 0.0.15                                ...           latest (7 years ago)

11 Versions

  • 0.0.15                                ...           7 years ago
  • 0.0.14                                ...           7 years ago
  • 0.0.13                                ...           7 years ago
  • 0.0.12                                ...           7 years ago
  • 0.0.11                                ...           7 years ago
  • 0.0.10                                ...           7 years ago
  • 0.0.9                                ...           7 years ago
  • 0.0.8                                ...           7 years ago
  • 0.0.7                                ...           7 years ago
  • 0.0.6                                ...           7 years ago
  • 0.0.5                                ...           7 years ago
Downloads
Total 42
Today 0
This Week 4
This Month 22
Last Day 0
Last Week 17
Last Month 11
Dependencies (0)
None
Dev Dependencies (0)
None

© 2010 - cnpmjs.org x YWFE | Home | YWFE