| Crates.io | naga-rust-back |
| lib.rs | naga-rust-back |
| version | 0.1.0 |
| created_at | 2025-03-26 02:50:27.814138+00 |
| updated_at | 2025-03-26 02:50:27.814138+00 |
| description | Backend for the Naga shader translator which generates Rust code. |
| homepage | |
| repository | https://github.com/kpreid/naga-rust/ |
| max_upload_size | |
| id | 1606094 |
| size | 110,696 |
naga-rust-back: translate shaders to Rustnaga backend allowing you to translate shader (GPU) code in any language supported by Naga
to Rust code.
The generated code requires the naga-rust-rt library.
Alternatively, you can use naga-rust-embed, which combines this library with naga-rust-rt
and provides convenient macros for embedding translated WGSL in your Rust code.
This library is in an early stage of development and many features do not work yet; this may be indicated by returned errors or by the generated code failing to compile. Broadly, simple mathematical functions will work, and bindings, textures, atomics, derivatives, and workgroup operations will not.
Copyright 2025 Kevin Reid and the gfx-rs authors.
Licensed under either of
at your option.