wasl/
lib.rs

1//! WASL is a library and standard for a way to translate WebAssembly modules to shaders that can be
2//! executed on the GPU.
3//!
4//! WASL works by having a standardized WASM interface for interacting with the GPU as a shader, and
5//! by parsing WASM modules into the [Naga] intermediate representation ( [`naga::Module`] ) so that
6//! it can be translated to shader code for the target platform: SPIR-V, GLSL, HLSL, Metal, etc.
7//!
8//! WASL also comes with tools to make it easier to compile WASL modules using the Rust language,
9//! allowing you to write Rust code that targets the GPU.
10//!
11//! [naga]: https://github.com/gfx-rs/naga