Commit Graph

16 Commits

Author SHA1 Message Date
Pelle Johnsen
6f0f551bac
New GLSL frontend using pomelo (#87)
* Add initial pomelo glsl work

* Fix ref to glsl_old

* Fix idents with numbers in lexer

* Use glsl_new for .vert in convert example

Controlled by PREFER_GLSL_NEW=1 env var

Also add simple test files

* Start making parser look like spec

* Port 'old' lex.rs to glsl_new

* Apply fixes after rebasing

* Fix clippy issue

* Fix PR comments

- Make into optional feature glsl-new

- Minor code style improvements
2020-06-30 10:42:50 -04:00
Dzmitry Malyshau
e0a1e80fb5 Remove spirv-headers use from IR, make it optional 2020-06-25 00:37:33 -04:00
Dzmitry Malyshau
70054b7693 Relicense under MIT+Apache2 2020-06-21 16:59:16 -04:00
Dzmitry Malyshau
89d2afa11b
Comparison sampler API (#66) 2020-06-16 14:55:40 -04:00
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
Dzmitry Malyshau
df855bc2ff Makefile and RON converter parameters 2020-03-19 09:44:14 -04:00
AIOOB
1ac92cd942 Fixup clippy lints and remove unsafe 2020-03-15 21:09:08 -04:00
Dzmitry Malyshau
e6fe97f410 [wgsl] rewrite with our own parser 2020-03-11 13:36:14 -04:00
Dzmitry Malyshau
246ca018ef
[tint] beginning of the front-end based on Pest (#9) 2020-02-28 13:05:24 -05:00
Dzmitry Malyshau
8c4e60eb81 Add DXIR to readme, more badges 2020-02-26 23:30:45 -05:00
Dzmitry Malyshau
515f878fa2 Basic image sampling support 2020-02-26 17:10:42 -05:00
Dzmitry Malyshau
96a12a0c9a Complete the crate rename to Naga 2020-02-25 14:00:51 -05:00
Dzmitry Malyshau
1fc6f89d79 Parse SPIR-V function declarations 2020-02-21 16:27:11 -05:00
Dzmitry Malyshau
8a945c79c8 Parsing names and entry points 2020-02-18 23:20:03 -05:00
Dzmitry Malyshau
99f160ebce First bits of hand-written high-level representation 2020-02-18 15:34:16 -05:00
Dzmitry Malyshau
ed96c2b8e0 Transpiler skeleton and first bits of MSL support 2018-09-12 21:29:03 -04:00