naga-rust-back

Crates.ionaga-rust-back
lib.rsnaga-rust-back
version0.1.0
created_at2025-03-26 02:50:27.814138+00
updated_at2025-03-26 02:50:27.814138+00
descriptionBackend for the Naga shader translator which generates Rust code.
homepage
repositoryhttps://github.com/kpreid/naga-rust/
max_upload_size
id1606094
size110,696
Kevin Reid (kpreid)

documentation

README

naga-rust-back: translate shaders to Rust

naga 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.

License

Copyright 2025 Kevin Reid and the gfx-rs authors.

Licensed under either of

at your option.

Commit count: 113

cargo fmt