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
João Capucho
706a88e21c
Fix clippy errors ( #62 )
...
* Move from travis to github actions (#58 )
* Added github actions
* Remove travis
* Fixed clippy warnings
* Add the clippy check to ci
* Move workflows to .github
* Fix missing clippy
2020-06-08 16:00:46 -04:00
Paul Kernfeld and 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
Timo de Kort
4b686165c2
Remove duplicate constants in IR module
2020-04-17 17:57:35 -04:00
Timo de Kort
1a1f6a47b0
add support for ConstantComposite
2020-03-28 14:58:45 -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
AIOOB
1ac92cd942
Fixup clippy lints and remove unsafe
2020-03-15 21:09:08 -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
Dzmitry Malyshau
76eb307d35
Local variables, [wgsl] statement context
2020-03-14 09:36:26 -04:00
Dzmitry Malyshau
607b77899b
[wgsl] add Lexer::skip() helper
2020-03-14 09:36:26 -04:00
Dzmitry Malyshau
d6a4e05e05
[wgsl] add parse_block, use for if statements
2020-03-14 09:36:26 -04:00
Dzmitry Malyshau
16f018046a
[wgsl] make lexer Error-aware
2020-03-13 17:11:55 -04:00
Dzmitry Malyshau
cb72a92bce
[wgsl] improved decoration parsing
2020-03-12 14:13:42 -04:00
Dzmitry Malyshau
ee325a6a67
Add imported function calls
2020-03-12 14:13:42 -04:00
Dzmitry Malyshau
0f8e3e4b9b
Singular, intrinsic, and derivative expressions
2020-03-12 13:09:19 -04:00
Dzmitry Malyshau
5e78c71a44
Rename Token/Id to Handle and Storage to Arena consistently
2020-03-11 16:28:13 -04:00
Dzmitry Malyshau
7e0b004c16
[wgsl] refactor Token
2020-03-11 13:36:14 -04:00
Dzmitry Malyshau
93d60ce8bf
[wgsl] hand-written function parsing
2020-03-11 13:36:14 -04:00
Dzmitry Malyshau
e6fe97f410
[wgsl] rewrite with our own parser
2020-03-11 13:36:14 -04:00
Dzmitry Malyshau
330ce644d8
[wgsl] parse most binary expressions
2020-03-05 13:14:06 -05:00
Dzmitry Malyshau
3bf1760d5b
[ir] add SAMPLED image flag
2020-03-05 11:21:36 -05:00
Dzmitry Malyshau
d4fb81a005
[wgsl] basic typed constructors
2020-03-03 22:56:11 -05:00
Dzmitry Malyshau
b9ba223b6e
[wgsl] basic parsing of entry points and global constants
2020-03-03 22:33:53 -05:00
Dzmitry Malyshau
ee987325a5
[wgsl] basic parsing of function body
2020-03-03 16:08:20 -05:00
Dzmitry Malyshau
a9c476d58d
Move out Void from the type enum
2020-03-03 14:09:41 -05:00
Dzmitry Malyshau
4a9f838208
[wgsl] first bits of function parsing
2020-03-03 13:52:47 -05:00
Dzmitry Malyshau
c2265ca4c8
[wgsl] structure declarations, better array types
2020-03-03 11:14:15 -05:00
Dzmitry Malyshau
2f0540c6ab
Flat type structure ( #10 )
2020-03-02 16:37:56 -05:00
Dzmitry Malyshau
246ca018ef
[tint] beginning of the front-end based on Pest ( #9 )
2020-02-28 13:05:24 -05:00
Dzmitry Malyshau
9ca1312617
[spv] rename ParseError to just Error
2020-02-26 17:25:08 -05:00
Dzmitry Malyshau
515f878fa2
Basic image sampling support
2020-02-26 17:10:42 -05:00
Dzmitry Malyshau
20be6876d7
[msl] write down expressions
2020-02-26 15:20:01 -05:00
Dzmitry Malyshau
61e0a980c2
Move complex types out into a separate struct
2020-02-26 10:14:10 -05:00
Dzmitry Malyshau
72ecd7b072
Parse decorations
2020-02-25 17:10:42 -05:00
Dzmitry Malyshau
84bc55e3d4
Parse Store, Composite extraction and composing from SPIR-V
2020-02-24 13:38:34 -05:00
Dzmitry Malyshau
17f31ca846
Parse SPIR-V load instruction
2020-02-24 11:34:45 -05:00
Dzmitry Malyshau
fe654ee8c5
Implement spir-v access chain parsing
2020-02-24 09:04:09 -05:00
Dzmitry Malyshau
e8a7a86c42
Parse SPIR-V inputs/outputs of entry points
2020-02-21 16:44:22 -05:00
Dzmitry Malyshau
1fc6f89d79
Parse SPIR-V function declarations
2020-02-21 16:27:11 -05:00
Dzmitry Malyshau
2c16742d1b
Parse SPIR-V arrays, structs, and constants
2020-02-21 14:02:21 -05:00
Dzmitry Malyshau
54924e5f66
Parse basic types from SPIRV
2020-02-21 10:45:03 -05:00
Dzmitry Malyshau
0e38eef82d
Restructure the project with frontends and backends
2020-02-21 08:23:44 -05:00