wasl 0.0.0

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