Commit Graph

1845 Commits

Author SHA1 Message Date
Dzmitry Malyshau
7e0b004c16 [wgsl] refactor Token 2020-03-11 13:36:14 -04:00
Dzmitry Malyshau
ee8e0699be [wgsl] remove Pest grammar 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
msiglreith
3066c3b558
Fix newline handling (#11)
Support also non-LF variants
2020-03-05 22:52:24 -05: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
3bf1760d5b [ir] add SAMPLED image flag 2020-03-05 11:21:36 -05:00
Dzmitry Malyshau
13a4c41121 Include test WGSL shaders 2020-03-03 22:57:20 -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
78d5a73a2f [msl] support returning values 2020-03-03 16:25:56 -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
aba9e8a0f2 Fixup metal type exports 2020-03-02 16:56: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
8c4e60eb81 Add DXIR to readme, more badges 2020-02-26 23:30:45 -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
34c59d0371 [msl] improve function I/O declarations 2020-02-25 14:26:23 -05:00
Dzmitry Malyshau
96a12a0c9a Complete the crate rename to Naga 2020-02-25 14:00:51 -05:00
Dzmitry Malyshau
b3c75ec1cd [msl] collect function parameters 2020-02-24 22:27:29 -05:00
Dzmitry Malyshau
763014cb43 [msl] write struct definitions 2020-02-24 18:49:19 -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
62c07782ca Add travis integration 2020-02-24 09:58:30 -05:00
Dzmitry Malyshau
e1a6b5aa55 Add README 2020-02-24 09:56:51 -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
Dzmitry Malyshau
8a945c79c8 Parsing names and entry points 2020-02-18 23:20:03 -05:00
Dzmitry Malyshau
f6912acdbd Add parsing states 2020-02-18 17:27:12 -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
Dzmitry Malyshau
d39bb42f9a
Initial commit 2018-09-12 21:26:50 -04:00