João Capucho
d7ca7d43b9
[glsl-in] Improve infix handling
...
Add support for float, vector and matrices targets.
Fix prefix and postfix being inverted (one was returning the value
of the other).
Remove an unneeded local indirection for prefix handling.
Add tests.
2021-09-17 13:56:42 -04:00
João Capucho
1cb4447ec3
[glsl-in] Add test array constant dynamic indexing
2021-09-17 13:47:38 -04:00
Jasper St. Pierre
27d6e442d2
[glsl-in] Also apply vector splatting to bitwise ops
2021-09-17 10:19:28 -04:00
Jasper St. Pierre
a9d20d8ef4
[glsl-in] Add support for a large number of texture sample overrides
2021-09-16 23:00:19 +01:00
Jasper St. Pierre
0e66930aff
[glsl-in] Fix sampling texture array types
...
Fixes #1349 .
2021-09-12 09:44:14 -04:00
Jasper St. Pierre
ba39fd47c3
Output parentheses around dereference ( #1348 )
...
Regression from ce676cf130 .
We need to output (*d).mx rather than *d.mx, at least according to Tint.
wgsl-in seems to handle *d.mx just fine, which is likely a separate bug.
2021-09-11 23:32:10 -07:00
João Capucho
1aaf77489b
[glsl-in] Improve error api and make more errors deferred
2021-08-09 10:51:15 -04:00
João Capucho
a8a316da15
[glsl-in] API revamp
...
The new api allows for reuse while keeping some allocations and to
please the borrow checker in future work, it also splits the parser into
logical modules to make it easier to work on.
2021-08-09 10:51:15 -04:00
João Capucho
057dc3100d
[glsl-in] Remove support for multiple entry points
2021-08-04 11:06:57 -04:00
João Capucho
677e040462
[glsl-in] Long form matrix support
2021-07-27 11:35:47 -04:00
João Capucho
105a2ae5e1
[glsl-in] Check type dimensions in function calls
2021-07-07 12:59:20 -04:00
Jasper St. Pierre
78e1304d42
[glsl-in] Convert bool -> scalar cast to Select
2021-07-02 01:34:34 -04:00
Jasper St. Pierre
cb8e9f2cad
[glsl-in] Implicitly splat the inputs of clamp()
2021-07-01 18:32:33 +01:00
João Capucho
4bc4c60663
[glsl-in] Implicit casts for function calls
2021-06-19 13:58:21 -04:00
Gordon-F
6cdd332cef
Reorganize test snapshot folder
2021-06-19 10:19:04 -04:00
Frizi
efd416d964
[glsl-in] parse all math functions
2021-06-17 16:08:34 -04:00
Frizi
20c6fd1862
add license headers to the bevy pbr shaders
2021-06-17 15:21:47 -04:00
Frizi
96980727cb
[glsl-in] support nested swizzles and prevent l-value repeated components
2021-06-17 15:21:47 -04:00
Frizi
b261dde77f
[glsl-in] revert test case change
2021-06-17 15:21:47 -04:00
Frizi
378ea9d396
add more glsl snapshot tests
2021-06-17 15:21:47 -04:00
João Capucho
06c8588fcd
[glsl-in] Add collatz shader and test quad shader
2021-06-09 12:54:58 -04:00
João Capucho
1c3baf4557
[glsl-in] Allow field selection behind pointers ( #948 )
2021-06-03 16:09:20 -04:00
João Capucho
87748a2fe3
[glsl-in] Add integration tests to CI ( #943 )
...
* [glsl-in] Add glsl snapshots folder
* [glsl-in] Fix incorrect angle brackets parsing
* [glsl-in] Temporarily remove wgsl snapshot output
2021-06-03 15:34:54 -04:00