Dzmitry Malyshau
9b358efea1
[wgsl] support 'elseif' construct
2021-02-11 20:50:27 -05:00
Dzmitry Malyshau
86bb611905
[wgsl] support select()
2021-02-11 15:32:28 -05:00
Dzmitry Malyshau
3aa11838c7
Refactor the global usage code into a separate module, fix inheriting from the callees
2021-02-10 11:02:56 -05:00
Dzmitry Malyshau
4f19903f46
[wgsl] fix variable initializers wrt control flow
2021-02-09 00:47:41 -05:00
Dzmitry Malyshau
6f50ca6bee
Push constant support
2021-02-07 11:54:56 -05:00
Dzmitry Malyshau
11a3ed9837
WGSL support for void function calls
2021-02-06 10:42:54 -05:00
Dzmitry Malyshau
b1fa7471d2
Basic image query support in SPV and WGSL frontends
2021-02-05 15:26:45 -05:00
Dzmitry Malyshau
4a3ecc774f
[wgsl] remove function and constant lookup maps
2021-01-31 18:27:08 -05:00
Dzmitry Malyshau
cb36c642ea
[wgsl] refactor constants processing, add support for array sizes
2021-01-31 18:27:08 -05:00
Dzmitry Malyshau
dc98305bb8
Print out detailed WGSL errors
2021-01-28 01:22:10 -05:00
Dzmitry Malyshau
4f517f4af3
[wgsl] include the expected string into the error
2021-01-28 01:22:10 -05:00
Dzmitry Malyshau
3e4cb21b90
[wgsl] support simple block statements
2021-01-27 21:31:04 +01:00
Dzmitry Malyshau
ab2cf8b842
[wgsl] support vector type casts
2021-01-26 23:33:08 -05:00
Dzmitry Malyshau
9c74468f81
[wgsl] enable access via rgba
2021-01-26 17:04:11 -05:00
Dzmitry Malyshau
292304b66f
[wgsl] fix postfix expression parsing
2021-01-26 16:44:19 -05:00
Dzmitry Malyshau
986550aff8
[wgsl] fix and update storage load
2021-01-26 15:57:48 -05:00
Dzmitry Malyshau
c803240587
[wgsl] resolve types across functions
2021-01-25 00:59:30 -05:00
Dzmitry Malyshau
0ea8a0a3c2
[wgsl] support unsigned literals
2021-01-23 10:03:25 -05:00
Dzmitry Malyshau
6f5ff27701
Sample mask support
2021-01-15 01:08:15 -05:00
Jay Oster
3bf7f41068
WGSL // comments
...
- Update parser to match the latest spec: https://github.com/gpuweb/gpuweb/pull/1326
2021-01-06 09:19:46 -05:00
Pelle Johnsen
6710f5954e
Fix clippy issues
2021-01-04 09:51:32 -05:00
Dzmitry Malyshau
001336b457
Tidy up constants IR
2020-12-20 17:42:00 +01:00
Dzmitry Malyshau
b95346877a
Remove MemberOrigin in favor of spans
2020-12-18 16:11:12 -05:00
Dzmitry Malyshau
fca72fd333
[wgsl] avoid recursion in token parsing
2020-12-18 16:11:12 -05:00
Dzmitry Malyshau
98857f09a2
Move Transpose into math functions
2020-12-13 00:41:23 -05:00
Dzmitry Malyshau
2d1006835a
Fix WGSL variable storage classes, spv-out interface
2020-12-13 00:41:23 -05:00
Dzmitry Malyshau
211bec44a1
Improve texture sampling IR, update WGSL parsing of it
2020-12-13 00:41:23 -05:00
Dzmitry Malyshau
0efd6e75d7
[wgsl] update texture definitions and storage access
...
Add more tests, enhance the snapshot testing.
2020-12-12 12:46:24 -05:00
Dzmitry Malyshau
dafca34877
Add block boolean to the structure types in IR
...
Also update WGSL syntax for structures.
Move the boids code into snapshots.
2020-12-12 12:46:24 -05:00
Dzmitry Malyshau
b7744a1ec5
[wgsl] function lookup, improve error reporting
2020-12-10 10:20:56 -05:00
Dzmitry Malyshau
82c5cff605
[wgsl] refactor type declarations and function calls to avoid backups
2020-12-10 10:20:56 -05:00
Dzmitry Malyshau
eeb479ae94
[wgsl] support const locals
2020-12-10 10:20:56 -05:00
Dzmitry Malyshau
edf5d857b1
Add workgroup id and size builtins
2020-12-10 09:38:56 -03:30
Dzmitry Malyshau
b35e901249
Add all standard library functions to the IR
2020-12-09 15:43:36 -05:00
Dzmitry Malyshau
6c1f4ac590
[wgsl] populate standard functions
2020-12-08 09:28:24 -05:00
Dzmitry Malyshau
4f958bf658
[msl] refactor function call parsing
2020-12-06 23:30:52 -05:00
Dzmitry Malyshau
b597bc5af6
[wgsl] add min/max support
2020-12-06 11:54:19 -05:00
Dzmitry Malyshau
5b14e26659
[wgsl] add a test module with units for if/loop/switch statements
2020-12-05 11:29:36 -05:00
Dzmitry Malyshau
f7ca7f2aff
Refactor Switch statement, implement on WGSL
2020-12-05 00:22:39 -05:00
Dzmitry Malyshau
5fe9429a63
Terminator processor, used in WGSL and GLSL frontends
2020-12-04 17:23:13 -05:00
Dzmitry Malyshau
92de5851d0
[wgsl] update builtin names, have implicit function return type
2020-12-04 16:09:57 -05:00
Dzmitry Malyshau
8b56f3ef96
[ir] support function argument names ( #270 )
2020-11-11 21:34:37 +01:00
Dzmitry Malyshau
ac5e91b31a
Fix and refactor the constant array sizes
2020-11-11 08:02:06 -05:00
Dzmitry Malyshau
41b3865e5b
Make variable initializers to be const
2020-11-04 16:38:55 -05:00
Dzmitry Malyshau
ce49afa391
Clean up the storage classes ( #245 )
2020-10-27 09:10:55 -04:00
Dzmitry Malyshau
c1830901c7
Simplify bitshift IR ( #244 )
2020-10-27 09:05:14 -04:00
Pelle Johnsen
6fb195cdc8
[clippy] Fix clippy issues after upgrading to 1.47 ( #237 )
...
* [clippy] disable match_like_matches_macro for now
* [wgsl-in] Return error instead of panic
* [typifier] Convert panics to return error
Still one panic in clone impl for Resolution,
disabled clippy for that one
* [spv-in] REturn error instead of panic'ing
* [spv-out] Return error instead of panic'ing
* [typifier] Use IncompatibleOperand(s) error
Instead of just Other
* [typifier] Use Expression for op in Error
For IncompatibleOperands
* [typifier] revert last commit
2020-10-13 17:14:40 -04:00
Timo de Kort
4420258001
[ir] Remove Matrix Kind from the IR ( #230 )
2020-10-06 17:19:29 -04:00
Dzmitry Malyshau
0651eb8fab
Complete expression/statement support in MSL, refactor conversion methods in WGSL, and remove Statement::Empty
2020-09-19 16:16:17 -04:00
Dzmitry Malyshau
d25ab1b1e8
Refactor image sampling arguments, add textureLoad support to WGSL
2020-09-18 10:53:26 -04:00