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
Connor Fitzgerald
0c7acb2144
Adds some missing features from desktop GL backend ( #4279 )
2023-10-22 22:54:49 -04:00
exrook
17dfdb9365
fix clippy lints introduced in 1.72 and 1.73 ( #2581 )
...
fixes:
- [non_canonical_clone_impl](https://rust-lang.github.io/rust-clippy/master/index.html#non_canonical_clone_impl )
- [non_canonical_partial_ord_impl](https://rust-lang.github.io/rust-clippy/master/index.html#non_canonical_partial_ord_impl )
- [redundant_guards](https://rust-lang.github.io/rust-clippy/master/index.html#redundant_guards )
2023-10-22 12:25:29 -07:00
Connor Fitzgerald
3cc6a563ca
Re-add missing example tests ( #4277 )
2023-10-22 05:18:37 +00:00
Connor Fitzgerald
04ac5f2851
Update WARP and Install Mesa on Windows CI ( #4270 )
2023-10-22 00:34:00 -04:00
Zoxc
095b46dbdb
Fix sRGB issues with glBlitFramebuffer on WGL ( #4273 )
...
Co-authored-by: Connor Fitzgerald <connorwadefitzgerald@gmail.com>
2023-10-20 21:04:09 +00:00
Zoxc
e918031201
Use the device OpenGL context for WGL surfaces ( #4271 )
2023-10-20 15:45:43 -04:00
dependabot[bot]
d876e0d844
Bump thiserror from 1.0.49 to 1.0.50 ( #4269 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-10-19 23:00:12 -04:00
Teodor Tanasoaia
19209b67d2
[wgsl-in] consolidate type resolution logic in a few macros ( #2571 )
...
* [wgsl-in] consolidate type resolution logic in a few macros
* rename + docs
* reorder macros (avoids doc linking not working)
2023-10-19 13:20:02 -07:00
teoxoy
29ca53148d
fix OOB typifier indexing
2023-10-19 09:15:28 -07:00
Connor Fitzgerald
543f921639
GPU Test Framework ( #3873 )
2023-10-19 12:06:42 -04:00
Jim Blandy
af26d77ce4
[wgsl-in] Abstract out ExpressionContext::as_const_evaluator.
2023-10-19 17:56:51 +02:00
Jim Blandy
334f745366
Make validation reject 64-bit floating-point literals.
...
Make expression validation and constant expression validation reject
`Literal` expressions containing `F64` literals unless the `FLOAT64`
capability is enabled.
2023-10-19 17:55:04 +02:00
Jim Blandy
1bb84aef0b
rename validate_literal to check_literal_value
2023-10-19 17:55:04 +02:00
Jim Blandy
860c200469
Give Validator::check_width its own error type, WidthError
.
...
Later changes will use `check_width` in new functions. Separating out
`WidthError` will make it easier to incorporate `check_width`'s
results into its new callers'.
2023-10-19 17:55:04 +02:00
teoxoy
5b65f11e3c
[refactor] make use of resolve_type
wherever possible
2023-10-18 12:25:36 -07:00
dependabot[bot]
75989192a9
Bump rustix from 0.37.19 to 0.37.25 in /xtask ( #4264 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-10-18 15:07:33 -04:00
dependabot[bot]
1bf8bfe209
Bump rustix from 0.38.4 to 0.38.19 ( #4265 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-10-18 15:07:15 -04:00
Zoxc
2b985e2fad
Add WGL context creation and OpenGL support ( #4248 )
...
Co-authored-by: Connor Fitzgerald <connorwadefitzgerald@gmail.com>
2023-10-18 18:40:33 +00:00
Teodor Tanasoaia
ead6348b43
Set the new naga Capabilities::CUBE_ARRAY_TEXTURES
( #4263 )
2023-10-18 12:13:21 -04:00
Nicolas Silva
8c03aa85e6
Make it possible to filter labels out ahead of wgpu-hal ( #4246 )
...
* Make it possible to filter labels out.
Co-authored-by: Jim Blandy <jimb@red-bean.com>
2023-10-18 17:45:59 +02:00
Teodor Tanasoaia
e25280df93
[glsl/spv-out] Cull functions that should not be available for a given stage ( #2531 )
2023-10-18 12:50:52 +00:00