Gordon-F
4ef754bb9d
[hlsl-out] Enable image snapshot
2021-07-16 10:31:01 -04:00
Gordon-F
2716d368a1
[hlsl-out] Implement barrier statement
2021-07-16 10:31:01 -04:00
Jasper St. Pierre
0995c7161e
[glsl-in] Keep around extra linkage variables
...
WGSL will require this. Note that this still might
cause some issues with multi-entry-point GLSL
that I didn't know how to handle. That is, we will
handle unused builtin inputs but not unused
builtin outputs correctly right now. This is an existing
issue though, not a regression.
This is also provided as an option, but I feel like
the more correct approach is to never strip linkage
variables. We'll see though.
2021-07-14 17:48:54 -04:00
pyrotechnick
1d1aea243f
Improve WGSL interpolation attributes ( #1083 )
...
* [wgsl-in] Map interpolate(..., center) to Sampling::Center
* [wgsl-out] Improve interpolation attributes
* [wgsl] Fix tests/in/interpolate.wgsl typo/format
* [wgsl] Snapshot WGSL artefacts
* [wgsl-out] Stack-only writing of interpolation
2021-07-13 21:57:52 -04:00
Gordon-F
ccf3fe9707
Fix type info of texture dimensions function with texture cube parameter
2021-07-13 17:28:09 -04:00
João Capucho
105a2ae5e1
[glsl-in] Check type dimensions in function calls
2021-07-07 12:59:20 -04:00
Gordon-F
9e61390626
[hlsl-out] Zero initialize variables. Write interpolation and sampling qualifier
2021-07-07 10:57:28 -04:00
João Capucho
ee1004d443
[glsl-in] Use cast for implicit conversion
...
Previously this was a bitcast
2021-07-06 11:24:05 -04:00
João Capucho
2b475ecc96
[spv-out] Support object-wise select
2021-07-06 10:12:24 -04:00
Gordon-F
d5776879de
[hlsl-out] Enable interface snapshot testing
2021-07-05 18:54:42 -04:00
João Capucho
2f002a0594
[spv-out] Load texture arguments ahead of time
2021-07-05 02:23:00 -04:00
João Capucho
c7b98f5ab9
[spv-out] accept texture trough function argument
2021-07-05 02:23:00 -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
a1749ab9c5
[glsl-out] Fix argument skipping
2021-07-01 11:19:28 -04:00
João Capucho
2bb15eb0a8
[glsl-in] Add support for texture arguments
2021-07-01 11:19:28 -04:00
João Capucho
4da665d3ba
Address comments
2021-07-01 11:19:28 -04:00
João Capucho
7df4a52af9
[valid] Handle texture/sampler function argument
2021-07-01 11:19:28 -04:00
Gordon-F
607206f9a5
[hlsl-out] Enable operators snapshot test
2021-06-29 09:49:00 -04:00
Gordon-F
925c92d12f
Add entry point to operators wgsl test
2021-06-29 09:49:00 -04:00
Gordon-F
6723c8f6ae
[hlsl-out] Implement Derivative expression and enable standard snapshot test for HLSL
2021-06-29 09:49:00 -04:00
Dzmitry Malyshau
68a2efd3c5
glsl-out: make the cs adjustment to also flip Y
2021-06-29 02:18:56 -04:00
Dzmitry Malyshau
ba066c83e7
glsl-out: proper continuing block
2021-06-29 01:44:54 -04:00
Dzmitry Malyshau
e8b71b8dc5
[glsl-out] Support extended shadow sampling instructions, and the offset
2021-06-28 15:01:39 -04:00
Dzmitry Malyshau
cfbe83e384
glsl-out: adjust coordinate space
2021-06-28 15:01:39 -04:00
Dzmitry Malyshau
57b3256020
[glsl-out] binding location mapping
2021-06-27 01:09:53 -04:00
Gordon-F
19de60f6e4
[hlsl-out] Implement more expressions
2021-06-26 13:15:44 -04:00
Gordon-F
a8119f005e
Add extra fragment entry point to wgsl quad snapshot
2021-06-24 10:47:17 -04:00
Gordon-F
e28344edbb
[hlsl-out] Return entry points name to users
2021-06-24 10:47:17 -04:00
Gordon-F
1c5d538ab4
[glsl-out] Add entry point name to snapshot file name
2021-06-24 10:47:17 -04: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
Jim Blandy
c16f2097ad
[spv-out]: Ensure array subscripts are in bounds.
2021-06-18 20:44:07 -04:00
Jim Blandy
fd3b2a93d4
access.wgsl: Make array mutable, and assign to an element.
2021-06-18 20:44:07 -04:00
Jim Blandy
b8724eb1fd
Tweak access.wgsl to avoid #913 and make SPIR-V more distinctive.
2021-06-18 20:44:07 -04:00
Gordon-F
46be75fb37
[hlsl-out] Implement all parts required by quad-spv snaphost test
2021-06-18 15:23:09 -04:00
Frizi
b89da31cc7
reorder namer assignment order to preserve names for reflection
2021-06-18 13:57:44 -04:00
Frizi
efd416d964
[glsl-in] parse all math functions
2021-06-17 16:08:34 -04:00
João Capucho
a07310536f
[glsl-in] Build wgsl shaders for glsl test shaders
2021-06-17 20:57:32 +01:00
João Capucho
b490902112
[glsl-in] Add loads as needed
2021-06-17 20:57:32 +01:00
Frizi
c7580f2743
[glsl-in] preserve entrypoint arg names for reflection
2021-06-17 15:21:47 -04:00
Frizi
e6d142f28f
[glsl-in] treat const globals as constants allow them in array size exprs
2021-06-17 15:21:47 -04:00
Frizi
337014786c
[wgsl-in] use AccessIndex for accesses using constant index
2021-06-17 11:34:58 -04:00
Gordon-F
96b37aff1f
[hlsl-out] Reduce heap allocation
2021-06-16 14:03:50 -04:00
Gordon-F
92a11d0978
[hlsl-out] More improvements. Enable quad snapshot testing
2021-06-15 21:08:05 -04:00
Gordon-F
d1f9575ed1
[glsl-out] Write space after if keyword
2021-06-15 21:08:05 -04:00
Gordon-F
54d7d7d2a3
Improve hlsl-out
2021-06-13 11:15:42 -04:00
João Capucho
10422c6b4a
Regenerate quad-glsl shader
2021-06-09 13:06:36 -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
be2231f6d9
[wgsl-out] Write global initializers
2021-06-09 10:14:46 -04:00