#shader #spir-v

cart-tmp-nga

Shader translation infrastructure

1 unstable release

0.1.0 Aug 10, 2020

#33 in #spir-v

Download history 20/week @ 2022-11-29 53/week @ 2022-12-06 32/week @ 2022-12-13 45/week @ 2022-12-20 21/week @ 2022-12-27 12/week @ 2023-01-03 32/week @ 2023-01-10 23/week @ 2023-01-17 65/week @ 2023-01-24 60/week @ 2023-01-31 12/week @ 2023-02-07 41/week @ 2023-02-14 39/week @ 2023-02-21 21/week @ 2023-02-28 41/week @ 2023-03-07 30/week @ 2023-03-14

141 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–770KB
~16K SLoC