João Capucho
778049f97a
Apply comments
2021-08-20 16:57:18 -04:00
João Capucho
bbf3e465f3
Add support for inverse hyperbolic trignometric functions
...
Hlsl and wgsl don't support them directly so a polyfill is used taken
from the msl spec.
`asinh` = `log(x + sqrt(x * x + 1.0))`
`acosh` = `log(x + sqrt(x * x - 1.0))`
`atanh` = `0.5 * log((1.0 + x) / (1.0 – x))`
2021-08-20 16:57:18 -04:00
sigaloid
9050108a95
Fix some clippy suggestions
2021-08-20 16:42:47 -04:00
Dzmitry Malyshau
78f225a37a
Implemented atomics in HLSL-out
2021-08-10 21:48:02 -04:00
Dzmitry Malyshau
8c371e8063
Atomic expressions, support in backends except HLSL and the validator.
2021-08-10 21:48:02 -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
Gordon-F
d3243bd774
[glsl-out] Enable access snapshot testing
2021-07-26 13:53:48 -04:00
Dzmitry Malyshau
284cfcce47
hlsl: storage writes
2021-07-26 01:29:42 -04:00
Dzmitry Malyshau
4b6846d5da
hlsl: storage reads support, array length
2021-07-26 01:29:42 -04:00
Gordon-F
3c98cc5ae1
[hlsl-out] Validate all entry points in Makefile
2021-07-20 01:03:58 -04:00
Dzmitry Malyshau
16206f2eb2
hlsl-out: unlock globals.wgsl test, override skybox bindings
2021-07-18 02:21:01 -04:00
Dzmitry Malyshau
0d94b76d1e
hlsl-out: rewrite texture coordinate construction
2021-07-18 02:21:01 -04:00
Dzmitry Malyshau
51fb9bb77a
hlsl-out: remap bindings
2021-07-18 02:21:01 -04:00
Dzmitry Malyshau
2a253ab838
hlsl-out: derive register based on storage class
2021-07-18 02:21:01 -04:00
Jim Blandy
337e40a2be
Enable logging in WGSL and SPIR-V tests. ( #1098 )
...
Use env_logger::try_init to avoid complaints about repeated initialization. This
function is thread-safe.
2021-07-16 23:09:48 -04:00
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
Jasper St. Pierre
0b69aa8b8a
Init env_logger in snapshots tests
...
For debugging. Maybe there's a way to do it for all tests,
not sure...
2021-07-14 17:48:54 -04:00
Dzmitry Malyshau
458db0b522
[hlsl-out] expose profile string conversions
2021-07-11 23:14:07 -04:00
Gordon-F
9e61390626
[hlsl-out] Zero initialize variables. Write interpolation and sampling qualifier
2021-07-07 10:57:28 -04:00
Gordon-F
65fbbf1101
[hlsl-out] Return only real names on entry point in ReflectionInfo
2021-07-05 18:54:42 -04:00
Gordon-F
d5776879de
[hlsl-out] Enable interface snapshot testing
2021-07-05 18:54:42 -04:00
João Capucho
c7b98f5ab9
[spv-out] accept texture trough function argument
2021-07-05 02:23:00 -04:00
João Capucho
2bb15eb0a8
[glsl-in] Add support for texture arguments
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
6723c8f6ae
[hlsl-out] Implement Derivative expression and enable standard snapshot test for HLSL
2021-06-29 09:49:00 -04:00
Dzmitry Malyshau
57b3256020
[glsl-out] binding location mapping
2021-06-27 01:09:53 -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
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
Gordon-F
46be75fb37
[hlsl-out] Implement all parts required by quad-spv snaphost test
2021-06-18 15:23:09 -04:00
João Capucho
a07310536f
[glsl-in] Build wgsl shaders for glsl test shaders
2021-06-17 20:57:32 +01: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
54d7d7d2a3
Improve hlsl-out
2021-06-13 11:15:42 -04:00
Jim Blandy
bfa2bbe590
Snapshot quad-glsl to WGSL, not SPIR-V and IR.
...
In tests/out, stop generating the uncommitted files quad-glsl.ron and
quad-glsl.spvasm, and add the snapshot quad-glsl.wgsl.
2021-06-07 17:27:09 +01: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
João Capucho
344acc3121
[glsl-in] Reenable snapshot tests
2021-06-01 21:11:50 -04:00
Dzmitry Malyshau
d1e2ac57fe
New snapshot test for global variables
2021-05-28 22:18:51 -04:00
João Capucho
ff8f15e034
[glsl-in] Start writting a parser without pomelo
2021-05-19 16:24:26 -04:00
Gordon-F
12e6dc5917
[wgsl-out] Implement all statements and expressions. Enable all wgsl-in tests
2021-05-19 14:11:05 -04:00
Dzmitry Malyshau
6c1832c8ee
[spv-out] be smarter about deriving capabilities, auto derive them for tests
2021-05-19 02:01:25 -04:00
Dzmitry Malyshau
96ec0b61e7
Snapshot for built-ins
2021-05-18 10:01:14 -04:00
Gordon-F
5958f98489
[wgsl-out] Enable snapshot testing for wgsl-in image test
2021-05-14 18:12:02 -04:00
Dzmitry Malyshau
418e71281e
Derivative tests
2021-05-14 09:53:24 -04:00
Dzmitry Malyshau
a8df6a2b34
[msl] make sizes buffer local to each function
2021-05-13 22:02:37 -04:00
Igor Shaposhnik
6a42e4a0f8
[wgsl-out] Enable snapshot testing for spv-in quad shader
2021-05-12 15:15:50 -04:00