#shader #codegen #compiled #vector #public-api #version #run-time #translation #naga-rust-back

no-std naga-rust-rt

Support library for shaders compiled to Rust via the naga-rust-back library

1 unstable release

Uses new Rust 2024

0.1.0 Mar 26, 2025

#309 in Graphics APIs


Used in naga-rust-embed

MIT/Apache

32KB
635 lines

naga-rust-rt: runtime support for executing shaders as Rust

This library provides types and functions which are used by the Rust code generated by naga-rust-back or naga-rust-embed. These types and functions implement vector arithmetic in the style expected by shader code, which differs from straightforward Rust in various ways.

This library currently does not have a clean public API distinct from the API provided for the benefit of the code generator. Expect changes in future versions.

License

Copyright 2025 Kevin Reid and the gfx-rs authors.

Licensed under either of

at your option.

Dependencies

~7–15MB
~194K SLoC