#shader #spir-v

cart-tmp-nga

Shader translation infrastructure

1 unstable release

0.1.0 Aug 10, 2020

#301 in Graphics APIs

37 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

~425–730KB
~15K SLoC