Repository navigation
Commit 5036d97
authored
Upgrade to wgpu 30 (bevyengine#24841)
# Objective
Upgrade to [wgpu
30](https://github.com/gfx-rs/wgpu/releases/tag/v30.0.0)
## Solution
- [x] Update and merge
[naga_oil](bevyengine/naga_oil#139)
- [x] Publish naga_oil
- [x] Update and merge
[dlss_wgpu](bevyengine/dlss_wgpu#31)
- [x] publish dlss_wgpu
- [x] remove dependency patches for naga_oil and dlss_wgpu
### Relevant Changes
- new NoopBackendOptions fields:
gfx-rs/wgpu#9119
- SurfaceColorSpace: gfx-rs/wgpu#9658
- get_mapped_range returns a Result:
gfx-rs/wgpu#9281
- empty BufferSlices no longer panic:
gfx-rs/wgpu#8505
- vertex buffer slots are optional now:
gfx-rs/wgpu#9351
- `SurfaceTexture::present()` has been replaced by
`Queue::present(surface_texture)`:
gfx-rs/wgpu#9361
- Disallow direct access to atomic variables in WGSL front-end (e.g. let
x = myAtomic;) gfx-rs/wgpu#9262. (affects
solari)
## Testing
- [x] 3d_scene
- [x] solari with dlss
## Showcase
#### 3d_scene on macos
<img width="1728" height="1084" alt="image"
src="https://github.com/user-attachments/assets/5ce80506-6924-4359-b469-92c32f06a505"
/>
#### ssao on macos
<img width="1728" height="1084" alt="image"
src="https://github.com/user-attachments/assets/8302ead7-54dc-44f9-8e71-a619d96c499e"
/>
#### bevy_city on macos
<img width="1728" height="1084" alt="image"
src="https://github.com/user-attachments/assets/4db1eba7-1c9b-4c54-95fe-1dc42ffc0e9e"
/>
#### Solari on Windows 11
<img width="1282" height="752" alt="image"
src="https://github.com/user-attachments/assets/2a367a06-f167-4b73-a781-6a2c5e4065dd"
/>1 parent 93fb3f5 commit 5036d97
38 files changed
Lines changed: 78 additions & 59 deletions
File tree
- assets/shaders
- crates
- bevy_anti_alias
- bevy_camera
- bevy_clipboard
- bevy_color
- bevy_gltf
- bevy_image
- bevy_light
- bevy_material
- bevy_mesh
- bevy_pbr
- src
- cluster
- lightmap
- prepass
- render
- bevy_post_process/src/auto_exposure
- bevy_reflect
- bevy_render
- src
- diagnostic
- render_phase
- render_resource
- renderer
- view/window
- bevy_shader
- bevy_solari/src
- realtime
- scene
- bevy_sprite
- bevy_text
- bevy_winit
- examples
- 3d
- app
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
1 | 3 | | |
2 | 4 | | |
3 | 5 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
| 37 | + | |
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
| 31 | + | |
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
| 32 | + | |
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
| 23 | + | |
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
70 | | - | |
| 70 | + | |
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
76 | | - | |
77 | | - | |
78 | | - | |
| 76 | + | |
79 | 77 | | |
80 | 78 | | |
81 | 79 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
| 32 | + | |
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
| 26 | + | |
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
| 30 | + | |
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| |||
0 commit comments