Crates.io | wasl |
lib.rs | wasl |
version | 0.0.0 |
source | src |
created_at | 2021-08-06 00:30:02.103875 |
updated_at | 2021-08-06 00:30:02.103875 |
description | The WebAssembly shader language |
homepage | |
repository | |
max_upload_size | |
id | 432232 |
size | 19,040 |
The WebAssembly Shader Language
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.