#naga #shader #naga-rust-rt

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

new 0.1.0 Mar 26, 2025

#225 in Graphics APIs

Download history 106/week @ 2025-03-23

106 downloads per month
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–14MB
~179K SLoC