Commit Graph

11 Commits

Author SHA1 Message Date
Dzmitry Malyshau
4a769c10b5 [spv] remove the pointer indirection to variables 2020-07-05 09:33:07 -04:00
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
8e0ae1cf06 Convert glsl module line endings to Unix 2020-06-16 22:54:26 -04:00
Timo de Kort
f9fa281da5 Update integers to float32 (#64) 2020-06-13 13:05:30 -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
55fab04353 Refactor the interface processor, many improvements in global variables handling in MSL 2020-03-19 22:36:26 -04:00
Dzmitry Malyshau
df855bc2ff Makefile and RON converter parameters 2020-03-19 09:44:14 -04:00
Dzmitry Malyshau
ee7882723a [wgsl] expect logical expressions, fix hex literals 2020-03-05 21:21:14 -05:00
Dzmitry Malyshau
330ce644d8 [wgsl] parse most binary expressions 2020-03-05 13:14:06 -05:00
Joshua Groves
279af921bc [wgsl] richer expression grammar 2020-03-05 11:22:50 -05:00
Dzmitry Malyshau
13a4c41121 Include test WGSL shaders 2020-03-03 22:57:20 -05:00