Commit Graph

663 Commits

Author SHA1 Message Date
Jim Blandy
2da7477322 [wgsl-in] Decorations are now called attributes. (#671)
Renames:

Error::UnknownDecoration => Error::UnknownAttribute
TypeDecoration => TypeAttributes
Scope::Decoration => Scope::Attribute

various argument names, string literals, comments
2021-04-07 22:45:38 -04:00
Zakarum
ccb6dc9088 Panic to prevent arena Handle overflow (#667)
* Panic to prevent arena Handle overflow

* Use `NonZeroU32::new` to detect overflow
2021-04-07 14:00:40 -04:00
adamnemecek
0058ce5a7d fixed bug where metal backend would make all switch cases fallthrough 2021-04-04 18:30:04 -04:00
Dzmitry Malyshau
0369ee181e [spv-out] fix sampling from depth textures 2021-04-04 10:25:46 -04:00
Dzmitry Malyshau
a9bde26785 [spv-out] fix incorrect dummy result 2021-04-04 10:25:46 -04:00
Dzmitry Malyshau
410c242daf [spv-out] add a flag to adjust the coordinate space 2021-04-03 11:27:21 -04:00
Dzmitry Malyshau
ead052b773 [spv-in] add a flag to adjust the coordinate space 2021-04-03 11:27:21 -04:00
Dzmitry Malyshau
100c2f42ed [spv-out] cache access index constants 2021-04-03 11:27:21 -04:00
Dzmitry Malyshau
5673603bab [spv-out] flip position Y 2021-04-03 11:27:21 -04:00
Dzmitry Malyshau
ab54f683be [spv-in] flip Y axis 2021-04-03 11:27:21 -04:00
Dzmitry Malyshau
4389a86787 Fix layout roundup 2021-04-03 00:41:32 -04:00
Dzmitry Malyshau
d4d9d7814f [msl-out] option to omit point size output 2021-04-02 00:19:52 -04:00
Dzmitry Malyshau
8ff27187d1 Fix matrix multiplication types 2021-04-01 15:49:37 -04:00
Dzmitry Malyshau
cbdfbed32e [msl-out] move return value statement into a function 2021-04-01 15:45:08 -04:00
Dzmitry Malyshau
13c9356873 [msl-out] track put_block stack sizes 2021-04-01 15:45:08 -04:00
Dzmitry Malyshau
f8b3c597ff [msl-out] move image size query into a separate method 2021-04-01 15:45:08 -04:00
Dzmitry Malyshau
db455af04b Add a snapshot for image load/store ops 2021-04-01 10:47:28 -04:00
Dzmitry Malyshau
6a5c7f10ad [msl-out] cast image load/store coordinates to unsigned 2021-04-01 10:47:28 -04:00
Dzmitry Malyshau
af4d989f55 [msl-out] copy array elements one by one 2021-04-01 10:26:59 -04:00
Dzmitry Malyshau
cf3a6da3ce [msl] clean up emitted expressions at the end of a block 2021-04-01 10:26:59 -04:00
Dzmitry Malyshau
62fe72be2e Enable all features for the docs 2021-04-01 10:26:00 -04:00
Dzmitry Malyshau
427d8dc1eb [spv-in] pre-emit constant expressions 2021-03-31 23:17:19 -04:00
Dzmitry Malyshau
7a17da195c [msl] use uint behind metal namespace only 2021-03-31 23:01:19 -04:00
Gordon-F
80a8243953 Fix Uint/Sint type conversion 2021-03-30 18:13:57 -04:00
Dzmitry Malyshau
7be524592a [msl] fix mutability of function parameters 2021-03-30 15:43:53 -04:00
Dzmitry Malyshau
fc7b79ddff [msl-out] make EntryPointError cloneable 2021-03-30 10:08:36 -04:00
Dzmitry Malyshau
c41f050312 [wgsl-in] ability to take a pointer to something 2021-03-30 01:01:28 -04:00
Dzmitry Malyshau
baccfc68f5 [msl] fix constant array initialization 2021-03-30 00:38:00 -04:00
Dzmitry Malyshau
057fa336a8 [spv-in] derivative ops 2021-03-29 11:07:33 -04:00
Dzmitry Malyshau
f06583ca7d [spv-in] change const indexes to signed int 2021-03-29 11:07:33 -04:00
Dzmitry Malyshau
ca6876b7a0 Validate math functions 2021-03-29 11:06:41 -04:00
Dzmitry Malyshau
50059740f7 [msl] prefix lod options with metal namespace 2021-03-27 10:58:01 -04:00
Dzmitry Malyshau
f2155d49d1 [msl] fix initialization of arrayed members, enable METAL snapshot of quad-vert 2021-03-27 10:58:01 -04:00
Dzmitry Malyshau
e47ff2dc26 [spv-in] support output interface block 2021-03-27 10:52:00 -04:00
Dzmitry Malyshau
c55bdf57bf [wgsl] don't clone statements 2021-03-27 00:31:21 -04:00
Dzmitry Malyshau
ba055bfbad Fix validation of constant offset expression 2021-03-27 00:29:48 -04:00
Dzmitry Malyshau
00f4c07609 [msl] fix Select on vectors 2021-03-26 09:56:29 -04:00
Dzmitry Malyshau
a090afa3f5 [msl] write scalar constants before the types 2021-03-26 09:56:29 -04:00
Dzmitry Malyshau
bf193bb535 [msl] don't put expressions in double scopes 2021-03-26 09:56:29 -04:00
Dzmitry Malyshau
2b163dc2a1 [msl] fix pointer address spaces, private forwarding and initialization 2021-03-26 09:56:29 -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
e87f57d82c Fix expression validation check 2021-03-25 09:32:55 -04:00
Dzmitry Malyshau
4fb4133298 [spv-in] fix image array index type to be signed 2021-03-25 09:21:58 -04:00
Dzmitry Malyshau
26f629ccb4 [spv-in] fix image operand iteration, add support for constant offsets 2021-03-25 09:21:58 -04:00
Dzmitry Malyshau
c8bac4b618 [spv-in] convert the shift to unsigned 2021-03-25 09:21:58 -04:00
Dzmitry Malyshau
06d777b609 Make layout validation optional, disable the struct size check 2021-03-24 21:03:00 -04:00
Dzmitry Malyshau
a0b5717fed Validate image stores 2021-03-24 12:32:32 -04:00
Dzmitry Malyshau
69a0fbd00e Validate image sampling and value casting 2021-03-24 12:32:32 -04:00
Dzmitry Malyshau
8c73c0c5df Validate derivatives and image loads 2021-03-24 12:32:32 -04:00