Kristoffer Søholm
1f5008f673
Refactor error handling in GLSL frontend
2020-06-30 18:56:58 -04:00
Gabriel Majeri
c2a220840f
Document almost everything
2020-06-29 12:25:48 -04:00
Dzmitry Malyshau
6eecea5dad
First bits of IR validation
2020-06-24 23:17:52 -04:00
João Capucho
f94b486d8b
Run cargo fmt and enable monocodus ( #63 )
2020-06-09 14:49:12 -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
Paul Kernfeld
b108a50089
Check constant types ( #54 )
...
* Check constant types
A baby step towards #43
* Move tp src/proc/typifier, remove unneeded return
* Don't do pub(crate)
* Don't use crate::proc::UnexpectedConstantTypeError
Co-authored-by: Paul Kernfeld <paulkernfeld@gmail.com >
2020-05-22 12:30:30 -04:00
Dzmitry Malyshau
3ea6ca428f
Move the global usage into the IR function
2020-03-20 16:23:35 -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
80a9254dbe
Interface processor
2020-03-19 18:04:58 -04:00
Dzmitry Malyshau
4a72abb142
Remove Mul expression type
2020-03-15 12:10:19 -04:00
Dzmitry Malyshau
a768af6011
Implement a fair bit of typifier logic, resolve access ids in WGSL
2020-03-15 10:59:12 -04:00
Dzmitry Malyshau
3c5a12412c
Typifier lookups into constants, variables, and structs
2020-03-15 10:59:12 -04:00
Dzmitry Malyshau
6ba942330a
Typifier skeleton
2020-03-15 10:59:12 -04:00