Fredrik Fornwall
f49314dbbd
Fix validation and glsl parsing of ldexp ( #2449 )
...
Fixes #1908 .
2023-09-01 18:44:48 +02:00
Frederik Magnus Johansen Vestre
0491d39232
Support dual source blending ( #2427 )
...
Co-authored-by: teoxoy <28601907+teoxoy@users.noreply.github.com >
2023-08-30 21:00:35 +02:00
Fredrik Fornwall
3bd2834b4f
[wgsl-in] Handle all(bool) and any(bool) ( #2445 )
...
Fixes #1911 .
2023-08-29 21:34:55 +02:00
Fredrik Fornwall
1192588486
[ci] Specify -HV 2018 to dxc ( #2447 )
...
This avoids breaking the build with the latest release of dxc, which
made HLSL the default.
2023-08-29 19:59:50 +02:00
Fredrik Fornwall
6aca2e2b5e
Add vim .swp files to gitignore ( #2448 )
2023-08-19 17:35:22 +02:00
Fredrik Fornwall
b001313947
[wgsl-in] Only splat 'scalar op vec', not '_ op vec' ( #2444 )
...
Change binary_op_splat() from splatting:
vec op scalar
_ op vec
to only splat:
vec op scalar
scalar op vec
2023-08-18 15:16:44 +02:00
Fredrik Fornwall
3da9355125
[wgsl-in] Avoid splatting all binary operator expressions ( #2440 )
...
* [wgsl-in] Avoid splatting all binary operator expressions
Fixes #2439 .
* [wgsl-in] Expand binary_op_splat function comment
2023-08-18 13:07:24 +02:00
Fredrik Fornwall
f6e99a4603
[wgsl-in] Handle repeated or missing @workgroup_size ( #2435 )
2023-08-17 13:20:10 +02:00
Fredrik Fornwall
7a19f3af90
[wgsl-in] Fail on repeated attributes ( #2428 )
...
* [wgsl-in] Fail on repeated attributes
Fixes #2425 .
* [wgsl-in] Use ParsedAttribute to keep track of parsed attributes
2023-08-13 17:52:10 +02:00
Fredrik Fornwall
30afa5bd1f
[wgsl-in] Fix error message for invalid texture{Load,Store}() on 2d_array ( #2432 )
...
Fixes https://github.com/gfx-rs/naga/issues/2431
2023-08-11 16:35:41 +02:00
daxpedda
bd74b11b4c
Bump indexmap to v2 ( #2426 )
2023-08-11 16:28:28 +02:00
daxpedda
24afaa5cfd
Properly test -Zminimal-versions ( #2429 )
...
* Properly test `-Zminimal-versions`
* Fix minimal version requirement
2023-08-11 15:32:49 +02:00
teoxoy
061d499ddb
[spv-out] rename get_image_id to get_handle_id
2023-08-04 10:45:36 -04:00
teoxoy
c3e35df576
[spv-out] decorate the result of the OpLoad with NonUniform (not the access chain) when loading images/samplers (resources in the Handle address space)
2023-08-04 10:45:36 -04:00
teoxoy
e51b4afa1e
clarify binding array of handles comment
2023-08-04 10:45:36 -04:00
teoxoy
f92340cd03
validate binding_array variable address space
2023-08-04 10:45:36 -04:00
Jim Blandy
543cae17a3
Bump MSRV to 1.65.
2023-08-02 09:25:31 -07:00
Evan Mark Hopkins
f7de1942c1
[spv-out] Cache OpConstantNull ( #2414 )
2023-08-02 18:05:16 +02:00
robtfm
d0d3a2e714
derive PartialEq on Expression ( #2417 )
2023-08-02 14:01:04 +02:00
Teodor Tanasoaia
46951a09c0
Validate storage buffer access ( #2415 )
...
* validate storage buffer access
* remove GLSL writeonly buffer test
2023-07-31 15:59:17 +02:00
Teodor Tanasoaia
535701f6b2
Add v0.13 changelog + minor version bumps of previous versions ( #2411 )
2023-07-25 19:10:15 -04:00
Fredrik Fornwall
dcce91960a
[glsl-out] Add built-in functions to keywords ( #2410 )
...
* [glsl-out] Add built-in functions to keywords
Fixes #2276 and part of #2366 .
* add a few more keywords and document where they come from
---------
Co-authored-by: teoxoy <28601907+teoxoy@users.noreply.github.com >
2023-07-25 16:47:32 +02:00
Evan Mark Hopkins
5f8e4f6dea
[spv] Fix OpImageQueries to allow Uints ( #2404 )
2023-07-24 21:25:45 +02:00
Connor Fitzgerald
bac2d82a43
Bump naga versions
naga-v0.13.0
naga-cli-v0.13.0
2023-07-20 22:20:46 -04:00
Connor Fitzgerald
c67fcc24bb
Bump dependencies
2023-07-20 22:20:46 -04:00
Jim Blandy
409239c0e2
[glsl-out] Various doc fixes.
2023-07-17 16:26:08 -07:00
Jim Blandy
e7cd4ffbaa
[wgsl-in] Document ExpressionContextType, ExpressionContext.
2023-07-17 16:26:08 -07:00
Jim Blandy
63bc66bc70
Reject constant/initializer cycles in handle validation.
2023-07-17 16:26:08 -07:00
Jim Blandy
a3dff6b840
Document front::wgsl::lower::ExpressionContextType and friends.
2023-07-17 16:26:08 -07:00
Jim Blandy
c7490b9832
Document constant and override expressions.
2023-07-17 16:26:08 -07:00
teoxoy
ee81f569df
add constructors test file
2023-07-17 16:26:08 -07:00
teoxoy
d348d843e1
implement const-expressions (phase 1)
2023-07-17 16:26:08 -07:00
Fredrik Fornwall
dfd88ee485
[glsl-in] Support commas in structure definitions ( #2400 )
2023-07-17 16:22:25 +01:00
Fredrik Fornwall
04ef22f6dc
Update README after the make -> xtask transition ( #2401 )
2023-07-08 12:37:41 +02:00
Fredrik Fornwall
981c1f9196
Fix installing naga-cli from git ( #2398 )
...
Move hl-snapshots out from the xtask workspace, since it's also used as
a dev dependency in the naga crate itself for a test.
2023-07-08 01:33:48 +02:00
Nicolas Silva
7624d6c78e
[glsl-out] textureSize level must be a signed integer. ( #2397 )
2023-07-04 15:53:29 +02:00
Teodor Tanasoaia
a550b0b499
Split image bounds check policy ( #2265 )
2023-06-29 14:59:37 +00:00
wicast
3ca8b4997d
fix(spv-out-debug): fix debug options ( #2394 )
2023-06-29 13:31:26 +02:00
wicast
25e4f17a69
add debug info for spv-out ( #2379 )
2023-06-28 14:30:25 +02:00
Joe O'Connor
614da63366
Expose early depth test field ( #2393 )
2023-06-27 15:25:55 +02:00
Elabajaba
adf1cca68d
Implement Pack/Unpack for HLSL ( #2353 )
2023-06-23 15:52:22 +02:00
Teodor Tanasoaia
ffe2308a60
rename allow_point_size to allow_and_force_point_size ( #2280 )
2023-06-22 06:36:54 -07:00
Eduard-Mihai Burtescu
f915d39a87
[spv-out] Use IndexSet instead of HashSet for iterated sets (capabilities/extensions).
2023-06-21 13:30:01 -07:00
Igor Shaposhnik
f31093fb3b
Add array-in-function-return-type test
2023-06-15 14:53:19 +02:00
Igor Shaposhnik
304ba5805c
[glsl-out] Fix functions with array return type
2023-06-15 14:53:19 +02:00
Jim Blandy
b7da0057a0
Don't use std::opsIndex, used only when "validate" is on. ( #2383 )
...
In `src/valid/expresion.rs`, use the full path `std::ops::Index` when
implementing the trait on `ExpressionTypeResolver`. This
implementation is `#[cfg(feature = "validate")]`, so the `use`
directive becomes unnecessary when that feature is not enabled,
triggering warnings.
2023-06-15 14:40:13 +02:00
teoxoy
76003dc003
remove unnecessary macro parameters
2023-06-13 15:08:05 -07:00
teoxoy
08105461ce
omit non referenced expressions
2023-06-12 17:49:06 -07:00
teoxoy
763ec5d1a5
complete HLSL reserved symbols
2023-06-12 17:41:53 -07:00
teoxoy
dbb6d8e814
avoid allocating
2023-06-12 17:41:53 -07:00