msiglreith / inspirv-rust

Rust (MIR) → SPIR-V (Shader) compiler
Other
57 stars 1 forks source link

Higher level APIs #9

Open msiglreith opened 7 years ago

msiglreith commented 7 years ago

Motivation: A large advantage of rust shaders in comparison to most extisting shaders are the support of modules and crates allowing to write reuseable code, which can be distributed fairly simple.

Providing libraries on-top of the std/core library would be a desirable target after the release of the compiler and the main library settles slowly. These libraries might contain code for example BRDF implementations (Lambertian, Phong, Oren-Nayar, ...) or common algorithms for noise creation.