github.com/embarkStudios/rust-gpu

🐉 Making Rust a first-class language and ecosystem for GPU shaders 🚧

Open this visualization on its own page →

Contributors

27

Lines of Code

2,028

From

2020-07-24

To

2020-12-19

About embarkStudios/rust-gpu

Rust-gpu is a project that enables Rust to be used as a first-class language for writing GPU shaders, traditionally a domain dominated by HLSL and GLSL. The project brings Rust's safety features, package management system, and modern language capabilities to GPU programming, addressing limitations in existing shader languages that struggle with large codebases and lack mechanisms for code organization at scale.

The project began at Embark Studios as an effort to modernize GPU programming by leveraging Rust's low-level performance, memory safety guarantees against race conditions and out-of-bounds access, and rich ecosystem tooling. While alternatives like CUDA and OpenCL exist, they suffer from vendor lock-in or incompatibility with traditional graphics pipelines. Rust-gpu aims to offer a compelling alternative that could shift industry practices in game development and graphics programming.

The repository now serves as a historical record, as active development has transitioned to community ownership under the Rust-GPU organization. The project remains in early stages with frequent API changes and no backward compatibility guarantees, requiring users to track the latest main branch. Contributors are welcome to participate through the project's contributor guide, and the codebase is licensed under either Apache 2.0 or MIT terms.

Share this video