João Capucho b91b9ca987 Glsl frontend (#50)
* Basic glsl support

* Miscellaneous fixes and vertex shader works

* Added rudimentary texture and sampler support

* Basic preprocessor

* Added preprocessor if macros

* Pass tests and handle floats correctly

* Fix preprocessor if wrong precedence ordering when using macros
Refractor for the glsl parser
Partial primary expression parser

* Fix all clippy errors

* Cleanup

* Rollback formatting changes in lib.rs
2020-06-09 13:43:16 -04:00
2020-06-09 13:43:16 -04:00
2020-06-09 13:43:16 -04:00
2020-06-09 13:43:16 -04:00
2020-05-01 09:59:37 -04:00
2020-06-09 13:43:16 -04:00
2018-09-12 21:26:50 -04:00

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
S
Description
A cross-platform, safe, pure-Rust graphics API.
Readme
92 MiB
0 Stars 1 Watchers 0 Forks
Languages
Rust 78.5%
WGSL 13%
GLSL 3.1%
Metal 2.8%
HLSL 2.3%
Other 0.2%