#shader #spir-v

cart-tmp-nga

Shader translation infrastructure

1 unstable release

0.1.0 Aug 10, 2020

#737 in Graphics APIs

Download history 22/week @ 2023-09-25 27/week @ 2023-10-02 36/week @ 2023-10-09 51/week @ 2023-10-16 53/week @ 2023-10-23 47/week @ 2023-10-30 56/week @ 2023-11-06 37/week @ 2023-11-13 52/week @ 2023-11-20 46/week @ 2023-11-27 34/week @ 2023-12-04 39/week @ 2023-12-11 48/week @ 2023-12-18 44/week @ 2023-12-25 20/week @ 2024-01-01 40/week @ 2024-01-08

160 downloads per month
Used in 2 crates (via cart-tmp-wgc)

MPL-2.0 license

390KB
9K SLoC

Naga

Matrix Crates.io Docs.rs Build Status

This is an experimental shader translation library for the needs of gfx-rs project and WebGPU. It's meant to provide a safe and performant way of converting to and from SPIR-V.

Supported end-points

Front-end Status Notes
SPIR-V (binary) 🚧
WGSL (Tint) 🚧
GLSL (Vulkan) 🚧
Rust
Back-end Status Notes
SPIR-V (binary) 🚧
WGSL
Metal 🚧
HLSL
GLSL
AIR
DXIR
DXIL
DXBC

Dependencies

~445–790KB
~16K SLoC