Skip to content

wgsl-tooling-wg/wesl-js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3,857 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WESL

NPM Version Static Badge

WESL enriches the WGSL shader language with extensions like import, @if.

wesl-js has tools and libraries for JavaScript / TypeScript projects to use WESL.

With a Bundler

Using WESL with a bundler plugin is the recommended experience.

Get started with wesl-plugin.

npm install wesl
npm install -D wesl-plugin

Vanilla

To use WESL as a library, use the link API.

Get started with vanilla WESL.

npm install wesl

Examples

Linking from the command line

Do you only want to link a few .wgsl files together, and do not need libraries?

Check out the CLI

Packaging your own

Want to publish your WESL library?

Use our packaging tool

wesl-rs

See also wesl-rs for using WESL in Rust/C++ projects. wesl-rs and wesl-js are interoperable implementations of the WESL specification.

Developing

See Developing for working on wesl-js itself

License

Except where noted (below and/or in individual files), all code in this repository is dual-licensed under either:

at your option.

Your contributions

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

About

enriched WGSL with support for import/export and more

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Packages

 
 
 

Contributors