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
Description
No description provided
Readme 137 MiB
Languages
Rust 79.9%
WGSL 16.2%
HLSL 2%
GLSL 1.7%
JavaScript 0.2%