Commit Graph
18 Commits
Author SHA1 Message Date
Gabriel Majeri ccab9f7c38 Implement Error for wgsl::ParseError (#113) 2020-07-21 14:52:18 -04:00
Dzmitry Malyshau 94802078c3 Derive Error for validation errors (#112) 2020-07-21 11:36:05 -04:00
Dzmitry Malyshau 39998a4c38 Differenciate between local and external function calls at IR level 2020-07-06 14:10:38 -04:00
Dzmitry Malyshau 33fe3a3dba Struct member origin enum 2020-07-04 11:10:37 -04:00
Dzmitry Malyshau 5d6406b018 Add DepthImage IR type.
Fix all the usage of Bytes type to really mean bytes.
Have logic in the SPIR-V front-end to detect the comparison properties of samplers and images.
2020-07-04 11:10:37 -04:00
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 KernfeldandPaul 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