Commit Graph

6966 Commits

Author SHA1 Message Date
TornaxO7
4c5a817071
Bump raw window handle to 0.6.0 (#4202)
Co-authored-by: junglie85 <junglie85@gmail.com>
Co-authored-by: Connor Fitzgerald <connorwadefitzgerald@gmail.com>
2023-10-27 05:24:46 +00:00
Connor Fitzgerald
2a9fdf9aa1
Misc Repo Cleanup Tasks (#4579)
* Misc Repo Cleanup Tasks

* Dependency Trimming

* Dep cleanup

* Restrict libfuzzer

* Flip cfg

* mod fuzz
2023-10-27 00:15:51 -04:00
Jim Blandy
61bca7e0aa
wgsl-errors: Reverse "old" and "new" sides of diff output. (#4577)
When an error snapshot test fails and we generate a diff comparing the
expected output with the actual output, treat the expected output as
the diff "from", and the actual output as the diff "to" - not the
reverse.
2023-10-26 20:12:39 -04:00
Nicolas Silva
9fd13dcce3
Validate max_vertex_buffers in set_vertex_buffer (#4574) 2023-10-26 19:48:03 -04:00
Connor Fitzgerald
af4a97fe06
Merge pull request #3987 from ErichDonGubler/inline-d3d12-crate 2023-10-26 13:57:43 -04:00
Erich Gubler
9e2d73d734 move(hal,dx11,dx12): use local path dep. for d3d12 2023-10-26 13:30:44 -04:00
Connor Fitzgerald
55b73a9fb8
Silence Codecov Errors 2023-10-26 12:53:46 -04:00
Erich Gubler
5663caa4a0 Add 'd3d12/' from commit '661dcee3f9b72c787b7aac33e4e492d9f887dc7b'
git-subtree-dir: d3d12
git-subtree-mainline: ca7ac86ccd
git-subtree-split: 661dcee3f9
2023-10-26 10:39:12 -04:00
Connor Fitzgerald
ca7ac86ccd
DXC on DX12 in CI (#4571) 2023-10-26 04:01:38 -04:00
Connor Fitzgerald
a4b53169c6
Remove Codecov Annotations 2023-10-26 02:14:44 -04:00
Connor Fitzgerald
2c4fae2494
Codecov 2023-10-26 01:43:56 -04:00
DevJac
6b859a15d8
Improve error message: "Format Bgra8UnormSrgb can't be multisampled" (#4294)
Co-authored-by: Connor Fitzgerald <connorwadefitzgerald@gmail.com>
2023-10-26 01:36:32 -04:00
Connor Fitzgerald
e54289b08b
Update Readme 2023-10-26 01:28:27 -04:00
dependabot[bot]
b8b93042c2
Bump actions/checkout from 3 to 4 (#4570)
Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v3...v4)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-10-26 03:01:01 +00:00
Connor Fitzgerald
34e947de4b
Integration of Naga into Repo (#4296) 2023-10-25 16:51:36 -04:00
Connor Fitzgerald
4445e55e1a
Merge branch 'naga-master' into naga-merge 2023-10-25 14:25:43 -04:00
Connor Fitzgerald
5369eec3b2
Move naga to subfolder 2023-10-25 14:25:04 -04:00
Connor Fitzgerald
49b7ec97c1
Update CHANGELOG.md 2023-10-25 14:15:05 -04:00
Connor Fitzgerald
493024ebce
Bump metal version 2023-10-25 14:04:01 -04:00
Connor Fitzgerald
92f4207bc0
Release v0.18.0 (#4295) 2023-10-25 17:53:22 +00:00
Connor Fitzgerald
92e41b43e4
Fix dependency 2023-10-25 13:18:06 -04:00
Connor Fitzgerald
95d216bb57
Bump Versions 2023-10-25 13:16:06 -04:00
Teodor Tanasoaia
7acd1aaa5e
add 0.14 changelog (#2588) 2023-10-25 18:06:02 +02:00
Teodor Tanasoaia
a1c5f38b53
[glsl-out] remove duplicate version check (#2587) 2023-10-25 14:15:56 +02:00
Jim Blandy
ada3cd85bb
[wgsl-in] Unify ConcreteConstructor and ConcreteConstructorHandle. (#2577)
Replace the `ConcreteConstructor` and `ConcreteConstructorHandle`
types in `front::wgsl::lower::construction` with a single type
`Constructor` with a type parameter that determines how it refers to
Naga types.
2023-10-24 22:49:30 +02:00
Connor Fitzgerald
3abf81efd2
Update CHANGELOG.md 2023-10-24 14:55:00 -04:00
Jim Blandy
86b6db6f76
[wgsl-in] Let lowering contexts point to a Function directly. (#2580)
Change `StatementContext` and `RuntimeExpressionContext` in
`front::wgsl::lower` to hold a `&mut crate::Function` reference,
rather than separate pointers to individual fields of the `Function`.
This replaces three fields with one, and clarifies their
relationships.
2023-10-24 12:04:41 +02:00
Zoxc
d10590936b
Don't use layout qualifiers to allow for GLSL 140 support (#2575) 2023-10-24 11:56:04 +02:00
Connor Fitzgerald
dd9b282c72
Verbiage fixes in readme 2023-10-24 00:50:27 -04:00
Connor Fitzgerald
a66075fd46
Changelog for v0.18 (#4289) 2023-10-24 03:17:50 +00:00
Connor Fitzgerald
2b90f7df80
Fix doc build 2023-10-23 21:53:39 -04:00
Zoxc
3bdad8bd77
Add timestamp support to OpenGL (#4267) 2023-10-23 21:26:23 -04:00
wicast
9dc57617e4
feat(spv): shader debug option (#4028)
Co-authored-by: Connor Fitzgerald <connorwadefitzgerald@gmail.com>
2023-10-23 23:44:04 +00:00
Connor Fitzgerald
dd84765e38
Allow xtasks to have more dependencies (#4268) 2023-10-23 15:18:28 -04:00
Valaphee The Meerkat
92d237fd93
Fix missing feature checks for dx11 and dx12 (#4287) 2023-10-23 18:49:17 +00:00
Jim Blandy
65f2216ecf [wgsl-in] Doc fix for Lowerer::constructor. 2023-10-23 10:33:09 -07:00
Jim Blandy
93ae5cc82e [wgsl-in] Delete ComponentsHandle type.
In `front:wgsl::lower::construct`, build `Components` values directly,
rather than building a `ComponentsHandle` and then calling its
`borrow` method.
2023-10-23 10:33:09 -07:00
Jim Blandy
49f6730624 [wgsl-in] Consolidate array and struct cases in construction. 2023-10-23 10:33:09 -07:00
teoxoy
f081f06f54 fix expected min arg count of textureLoad 2023-10-23 10:26:46 -07:00
Jim Blandy
528bca75f7 Give front::wgsl::Error::InitializationTypeMismatch named fields. 2023-10-23 15:01:39 +02:00
Jim Blandy
946745d38f [wgsl-in] Turn Error::Other into Error::Internal, to help devs.
Provide a textual message with `front::wgsl::Error::Internal`, so that
a developer who sees one of these errors can at least search the
source tree to find out where it came from.
2023-10-23 14:57:25 +02:00
Jim Blandy
dd8f814344 [wgsl-in] Clean up swizzle/component access type.
Rename `front::wgsl::lower::Composition` to `Components`. It doesn't
represent a composition, it represents either a single component being
selected from a vector or a swizzle.

Clean up code and helper function names.
2023-10-23 14:56:14 +02:00
Jim Blandy
d038506a8c [wgsl-in] Delete {ExpressionContext,RuntimeContext}::reborrow.
Remove `front::wgsl::lower::ExpressionContext::reborrow` and
`front::wgsl::lower::RuntimeExpressionContext::reborrow` in favor of
Rust's automatic reborrowing of `&mut` references.
2023-10-23 14:52:29 +02:00
Jim Blandy
a647c64432 [wgsl-in] Delete front::wgsl::lower::StatementContext::reborrow.
Remove `StatementContext::reborrow` in favor of Rust's automatic
reborrowing of `&mut` references.
2023-10-23 14:52:29 +02:00
Jim Blandy
0285bf9388 [wgsl-in] Delete front::wgsl::lower::GlobalContext::reborrow.
Remove `GlobalContext::reborrow` in favor of Rust's automatic
reborrowing of `&mut` references.
2023-10-23 14:52:29 +02:00
Jim Blandy
6d4807fc6d [wgsl-in] Delete front::wgsl::parse::ExpressionContext::reborrow.
Remove `ExpressionContext::reborrow` in favor of Rust's automatic
reborrowing of `&mut` references.

Use lifetime elision in more places.
2023-10-23 14:52:29 +02:00
Jim Blandy
509ea4c857
[wgsl-in] Generate no code for trivial vector/matrix construction. (#2576)
Do not emit an `Expression::As` conversion for WGSL like `vec3(v)`
where `v` is already a `vec3`, or `mat2x3(m)` where `m` is already a
2x3 matrix. This doesn't fix any bugs, but it makes it clearer to the
reader of `Lowerer::construct` that no conversion can actually take
place in this case.

Some snapshots are affected because `As` expressions whose `width` is
`None` are bitcast expressions, which the constant evaluator does not
yet support. When this commit removes those `As` expressions, the
constant evaluator can reduce the expression to a `Literal` or
`ZeroValue`, which is then concealed by #2539.
2023-10-23 14:48:18 +02:00
Connor Fitzgerald
85cab49c53
Normalize GL language versions (#4283) 2023-10-23 05:17:00 +00:00
Connor Fitzgerald
bb00d594f8
Fix Issue with Caching on Windows CI (#4284) 2023-10-23 04:31:22 +00:00
dependabot[bot]
3ed37c3365
Bump glutin_wgl_sys from 0.4.0 to 0.5.0 (#4281)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-10-23 03:01:46 +00:00