Socket
Socket
Sign inDemoInstall

@webgpu/glslang

Package Overview
Dependencies
0
Maintainers
4
Versions
11
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @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).


Version published
Weekly downloads
107K
increased by3.01%
Maintainers
4
Install size
4.85 MB
Created
Weekly downloads
 

Readme

Source

@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.

FAQs

Last updated on 07 Mar 2020

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc