Jim Blandy
a7100b14eb
Flesh out the Naga module-level documentation.
2021-05-19 23:31:19 -04:00
Dzmitry Malyshau
b191c982ec
Remove alignment from struct IR
2021-05-17 09:32:52 -04:00
Dzmitry Malyshau
59d1dcab5b
Support width changes in As expression
2021-05-08 21:20:23 -04:00
Gordon-F
73b20ffa70
Add CullDistance BuiltIn
2021-05-08 09:51:14 -04:00
Dzmitry Malyshau
09032695b0
Barrier follow-up fixes
2021-05-06 14:48:55 -04:00
Dzmitry Malyshau
9fe75ed7f1
Barriers
2021-05-04 22:16:24 -04:00
Lachlan Sneff
37a6ff7bfe
Add several additional ops to the spirv frontend. ( #803 )
...
* Add support for int8, int16, and int64 as well as null constant structs
* Add support for OpArrayLength to the spirv frontend
* Add hacky OpCopyMemory support to spirv frontend
* Add OpInBoundsAccessChain to spirv frontend
* Add OpLogical(Not)Equal to spirv frontend
* Fix several of the issues raised in the pr
* Fix the Op::ArrayLength match
* Validate accessing structs through pointers
* Remove extraneous type check
2021-04-29 19:45:49 -04:00
Ashley Ruglys
33003d8ea2
Add MathFunction::Refract
2021-04-26 14:14:30 -04:00
Dzmitry Malyshau
24eaad10fc
Follow up on the swizzle PR review notes ( #750 )
2021-04-22 11:17:44 -04:00
Dzmitry Malyshau
5d1746b0b4
Swizzle expression ( #734 )
2021-04-20 22:03:54 -04:00
Jim Blandy
0910af2718
[wgsl-in] Implement WGSL interpolate syntax from gpuweb PR #1605 .
...
Fixes : #670
2021-04-19 09:42:00 -04:00
Jim Blandy
99a9e1e78e
Change Binding::Location to a struct-style enum variant.
...
This commit makes no other changes. This is in preparation for adding a third
field, at which point tuple variants start to get obscure.
2021-04-19 09:42:00 -04:00
Dzmitry Malyshau
d3b39d9e58
Splat expression in the IR
2021-04-14 19:26:20 -04:00
Dzmitry Malyshau
604e10e19b
Rewrite IR to have member offsets, full structure span and alignment
2021-04-08 23:15:03 -04:00
Dzmitry Malyshau
7326ba6ddb
New struct layout IR
2021-04-08 23:15:03 -04:00
Dzmitry Malyshau
c55bdf57bf
[wgsl] don't clone statements
2021-03-27 00:31:21 -04:00
Dzmitry Malyshau
372b2d314e
Adjust lints for Rust clippy 1.51
2021-03-25 12:34:25 -04:00
Dzmitry Malyshau
7d042337e2
Align the block decoration with SPIR-V, require storage buffers
2021-03-25 12:34:25 -04:00
Dzmitry Malyshau
7a246f6a14
Validate image queries and valid shader stages for derivatives
2021-03-24 12:32:32 -04:00
Dzmitry Malyshau
c992e638fe
Move all the validation into a separate meta-module
2021-03-20 22:25:49 -04:00
Dzmitry Malyshau
d58f9bdfde
Merge sample mask in/out builtins
2021-03-18 21:57:48 -04:00
Dzmitry Malyshau
08eaad89db
Implement default layout in the IR and WGSL
2021-03-15 22:27:35 -04:00
Dzmitry Malyshau
32a11752af
Rename FragCoord builtin into Position
2021-03-13 23:26:19 -05:00
Dzmitry Malyshau
ebcd815250
Update IR to have entry points with inputs/outputs
2021-03-13 23:26:19 -05:00
Dzmitry Malyshau
9e5cc4c9e4
Prevent matching on a reference once and for all
2021-03-12 11:35:09 -05:00
Dzmitry Malyshau
13d7a353e0
Switch entry points from map to a vec
2021-03-07 12:11:49 -05:00
Dzmitry Malyshau
6afd72b8dd
Relax interpolation validation for vertex outputs
2021-03-06 23:41:53 -05:00
Dzmitry Malyshau
dd823a4b84
Enforce pointer semantics at the type level.
2021-03-06 11:01:14 -05:00
Dzmitry Malyshau
89e37d6e90
Explicitly emit expressions by Statement::Emit
2021-03-02 21:50:06 -05:00
Dzmitry Malyshau
0cefc1c46c
Remove mutation from the Call expression
2021-02-22 23:37:26 -05:00
Dzmitry Malyshau
8a0382a89d
Move global use flags into FunctionInfo
2021-02-17 15:37:37 -05:00
Joshua Groves
f42dc0c377
Fix some typos
2021-02-14 22:50:12 -05:00
Dzmitry Malyshau
61d711b58f
Remove the Header from IR
2021-02-14 20:23:31 -05:00
Systemcluster
7a124550d4
[glsl-in] support inverse function
2021-02-14 12:34:26 -05:00
Dzmitry Malyshau
18853ab149
Add warnings for trivial casts and clean them up in the code
2021-02-14 11:55:35 -05:00
Dzmitry Malyshau
de5bd77279
ImageStore statement in IR
2021-02-14 11:55:35 -05:00
Dzmitry Malyshau
c1fc5d6424
[msl] re-use expression results based on the analysis
2021-02-14 01:19:15 -05:00
Dzmitry Malyshau
bde43cbec6
First uniform control flow tests
2021-02-14 01:19:15 -05:00
Dzmitry Malyshau
d0c84a5ffa
[spv-in] support for void function calls
2021-02-06 10:42:54 -05:00
Dzmitry Malyshau
d949d58f7b
Statement for void function call
2021-02-06 10:42:54 -05:00
João Capucho
88eee833d7
Add binary op support for the ConstantSolver
2021-02-06 00:25:30 -05:00
Dzmitry Malyshau
50f0ad6249
Image queries
2021-02-05 15:26:45 -05:00
João Capucho
68bbf00249
Added support for initalizers and constants
2021-02-02 11:17:34 -05:00
Dzmitry Malyshau
b441a25956
Rename GlobalUse variants
2021-01-22 08:58:02 -05:00
Dzmitry Malyshau
6f5ff27701
Sample mask support
2021-01-15 01:08:15 -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
98857f09a2
Move Transpose into math functions
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