Josh Groves
3716b8a1bc
Update glow to 0.13.1 ( #5083 )
2024-01-17 20:54:10 +00:00
Connor Fitzgerald
484457d959
Fix wgpu-hal build
2024-01-17 15:23:50 -05:00
Connor Fitzgerald
7eac4cec5b
Fix naga release
2024-01-17 14:47:13 -05:00
Connor Fitzgerald
8b2098bd4e
Release 0.19 ( #5082 )
2024-01-17 14:42:11 -05:00
Andreas Reich
4c18e283d1
polish changelog for upcoming release ( #5078 )
...
Co-authored-by: Connor Fitzgerald <connorwadefitzgerald@gmail.com>
2024-01-17 18:24:43 +00:00
Andreas Reich
b8f27c7284
Expose maximum_frame_latency ( #4899 )
...
Co-authored-by: Emil Ernerfeldt <emil.ernerfeldt@gmail.com>
2024-01-17 12:46:34 -05:00
Connor Fitzgerald
2e38187954
Re-export public dependencies ( #5063 )
2024-01-16 19:21:51 +00:00
dependabot[bot]
6c86b55764
Bump Swatinem/rust-cache from 2.7.1 to 2.7.3 ( #5060 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Andreas Reich <r_andreas2@web.de>
2024-01-16 11:37:27 -05:00
John-John Tedro
90b078f037
Improve ergonomics of gfx_select! ( #5069 )
2024-01-16 11:15:56 +01:00
Nicolas Silva
445fa6019b
d3d12: Propagate descriptor heap and handle allocation errors ( #5065 )
2024-01-15 15:43:30 +00:00
Andreas Reich
1da093f7d6
Fix cases in which instance creation may not create any context ( #5059 )
...
* Fix cases in which instance creation may not create any context
* split condition steps on picking webgpu instance
* comment formulation fix on backend availability
Co-authored-by: daxpedda <daxpedda@gmail.com>
---------
Co-authored-by: daxpedda <daxpedda@gmail.com>
2024-01-15 12:16:23 +01:00
dependabot[bot]
c5a0b0b7b4
Bump the patch-updates group with 12 updates ( #5061 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-01-14 23:48:30 -05:00
Andreas Reich
7774f31021
Allow WebGPU & WebGL in same wasm and detect WebGPU availability ( #5044 )
...
* Rename backends: web -> webgpu, direct -> wgpu_core
* rename context objects for web & core
* allow webgpu & webgl features side-by-side
* make sure webgl ci doesn't use webgpu
* update any_backend_feature_enabled
* add panicing generate_report method for compatibility
* RequestDeviceErrorKind::Web rename, fixup various cfg attributes
* automatic webgpu support detection
* changelog entry
* fix emscripten
* fix weird cfg, fix comment typo
* remove try_generate_report again
* Make get_mapped_range_as_array_buffer WebGPU only again
2024-01-14 09:45:52 +00:00
Brad Werth
f89bd3b978
Make DeviceLostClosure.from_c consume the closure before dropping it. ( #5032 )
...
This clarifies that the Rust and C-style callbacks/closures need to be
consumed (not called) before they are dropped. It also makes the from_c
function consume the param closure so that it can be dropped without
panicking.
It also relaxes the restriction that the callback/closure can only be
called once.
2024-01-14 02:53:40 -05:00
daxpedda
580340f2d3
Add cfg_aliases
to wgpu-core
and wgpu-hal
( #5055 )
2024-01-14 00:59:59 -05:00
Connor Fitzgerald
552f06da2f
Fix DX12 Wait with Timeout ( #5052 )
2024-01-13 15:50:32 -05:00
Connor Fitzgerald
ad625f433f
Convert Tests to Use Async Poll ( #5053 )
...
* Convert Tests to Use Async Poll
* Update examples/src/repeated_compute/mod.rs
Co-authored-by: Andreas Reich <r_andreas2@web.de>
---------
Co-authored-by: Andreas Reich <r_andreas2@web.de>
2024-01-13 17:34:51 +00:00
Connor Fitzgerald
5fd7d228ad
Add proper timeouts to CI/nextest ( #5051 )
2024-01-13 12:26:55 +01:00
Nicolas Silva
376d901d1e
Triage suspected resources after triaging submissions ( #5050 )
2024-01-12 13:19:19 -05:00
Nicolas Silva
11c29c825f
Prevent a few integer overflows ( #5042 )
...
* Prevent a few integer overflows
* Add a changelog entry
* use u64
2024-01-12 16:23:23 +01:00
Andreas Reich
4fd4a7142e
Unify surface creation by introducing new SurfaceTarget
enum ( #4984 )
2024-01-11 22:24:01 -05:00
Nicolas Silva
bc65d84cdb
Remove the Destroyed state from Storage ( #4970 )
...
* Remove the Destroyed state from Storage
It used to be how we handled destroying buffers and textures but we moved to different approach.
* Explicit check for destroyed textures/buffers in a few entry points
This used to be checked automatically when getting the resource from the registry, but has to be done manually now that we track we track the destroyed state in the resources.
2024-01-11 10:45:12 +00:00
Nicolas Silva
b30c0c2e00
Remove the free_resources tracker ( #5037 )
2024-01-11 09:41:09 +00:00
Nicolas Silva
c90f43bc2a
Move the trace recording of destroy events out of triage_resources ( #5036 )
2024-01-11 00:48:25 -05:00
Connor Fitzgerald
2512b2dae1
Pin rust-cache-version ( #5040 )
2024-01-11 01:57:51 +00:00
dependabot[bot]
8c1658f28f
Bump the patch-updates group with 11 updates ( #5039 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-01-10 19:38:11 -05:00
Connor Fitzgerald
cf01592016
Dependabot Improvements ( #5035 )
2024-01-10 17:57:03 -05:00
Connor Fitzgerald
f7695b360b
Add test -> check Dependency ( #5033 )
2024-01-10 17:56:46 -05:00
Nicolas Silva
f27bb443c1
Don't crash if a texture is destroyed before queue submission ( #5028 )
2024-01-10 14:36:02 +01:00
dependabot[bot]
c367adf3bf
Bump getrandom from 0.2.11 to 0.2.12 ( #5030 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-01-10 02:51:31 +00:00
Nicolas Silva
4400a58470
Fix a bounds check in remove_abandoned ( #5024 )
2024-01-09 11:24:18 -05:00
Nicolas Silva
37755b6985
Validate that a binding offset fits in the buffer
2024-01-09 16:07:47 +01:00
Nicolas Silva
58fe7eac48
Don't case the dynamic offsets count to u8 ( #5026 )
2024-01-09 15:41:39 +01:00
Nicolas Silva
1bc71eb8b2
Validate max_vertex_buffers in render bundles. ( #5025 )
2024-01-09 15:41:24 +01:00
Jim Blandy
8af6975d5e
Prefer Arc::into_inner
over Arc::try_unwrap
. ( #5018 )
2024-01-08 19:24:33 -05:00
Jim Blandy
a24bdbaa25
[wgpu-core] Minor doc fixes for initialization tracking. ( #5017 )
2024-01-08 16:46:57 -05:00
Connor Fitzgerald
a01ff0741c
Re-Enable Mac CI ( #5015 )
2024-01-08 16:12:57 -05:00
Nicolas Silva
c6eea50b04
Track the actual size of the buffer for memory init ( #5014 )
2024-01-08 17:24:09 +01:00
Patryk Wychowaniec
e7c7017d2e
[naga wgsl-in] Fix parsing break if
s
...
Closes https://github.com/gfx-rs/wgpu/issues/4982 .
2024-01-08 10:50:38 +01:00
Connor Fitzgerald
a2dced12b3
Disable naga-cli's docs
2024-01-08 08:48:13 +01:00
dependabot[bot]
1b6207b6d7
Bump libc from 0.2.151 to 0.2.152 ( #5010 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-01-08 00:06:25 -05:00
dependabot[bot]
ae72b64c21
Bump futures-lite from 2.1.0 to 2.2.0 ( #5011 )
...
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-01-08 00:06:10 -05:00
Rubens Brandão
0298198ab7
fix: get CONTEXT_PROFILE_MASK in invalid version ( #5007 )
2024-01-06 15:16:29 +00:00
dependabot[bot]
dd2b985690
Bump winit from 0.29.8 to 0.29.9 ( #5004 )
...
Bumps [winit](https://github.com/rust-windowing/winit ) from 0.29.8 to 0.29.9.
- [Release notes](https://github.com/rust-windowing/winit/releases )
- [Changelog](https://github.com/rust-windowing/winit/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-windowing/winit/compare/v0.29.8...v0.29.9 )
---
updated-dependencies:
- dependency-name: winit
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Andreas Reich <r_andreas2@web.de>
2024-01-06 09:56:44 -05:00
dependabot[bot]
0005b42648
Bump serde from 1.0.194 to 1.0.195 ( #5005 )
...
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.194 to 1.0.195.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.194...v1.0.195 )
---
updated-dependencies:
- dependency-name: serde
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Andreas Reich <r_andreas2@web.de>
2024-01-06 09:56:06 -05:00
Nicolas Silva
8358868526
Propagate errors when openning/closing a command encoder ( #4999 )
2024-01-06 10:14:38 +01:00
Connor Fitzgerald
5e06baf80d
Pin nightly docs version
2024-01-06 09:41:15 +01:00
Nicolas Silva
4b82121501
Snatch the raw texture when destroying it
2024-01-05 11:42:28 +01:00
Nicolas Silva
95c451a3b8
Check thata bindgroup's textures are not destroyed before using it
2024-01-05 11:42:28 +01:00
Nicolas Silva
defd43dff2
Rename Texture::as_raw into Texture::raw
...
For consistency with Buffer::raw.
2024-01-05 11:27:17 +01:00