You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add support for gaps in bind group layouts & update relevant validation (gfx-rs#9034)
* [wgpu-core] add support for optional BG & BGL entries
* [wgpu] allow gaps in bind group layouts
And allow unbinding in the web backend.
* adapt tests
* add changelog entry
* [wgpu] remove generic from `PipelineLayoutDescriptor`
Copy file name to clipboardExpand all lines: CHANGELOG.md
+19Lines changed: 19 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -44,6 +44,25 @@ Bottom level categories:
44
44
45
45
### Major Changes
46
46
47
+
#### Bind group layouts now optional in `PipelineLayoutDescriptor`
48
+
49
+
Allow gaps in bind group layouts and added full support for unbinding. As a result of this `PipelineLayoutDescriptor`'s `bind_group_layouts` field now has type of `&[Option<&BindGroupLayout>]`, making this a breaking change. To migrate wrap bind group layout references in `Some`:
50
+
51
+
```diff
52
+
let pl_desc = wgpu::PipelineLayoutDescriptor {
53
+
label: None,
54
+
bind_group_layouts: &[
55
+
- &bind_group_layout
56
+
+ Some(&bind_group_layout)
57
+
],
58
+
immediate_size: 0,
59
+
});
60
+
```
61
+
62
+
By @teoxoy in [#9034](https://github.com/gfx-rs/wgpu/pull/9034).
63
+
64
+
#### MSRV update
65
+
47
66
`wgpu` now has a new MSRV policy. This release has an MSRV of **1.87**. This is lower than v27's 1.88 and v28's 1.92. Going forward, we will only bump wgpu's MSRV if it has tangible benefits for the code, and we will never bump to an MSRV higher than `stable - 3`. So if stable is at 1.97 and 1.94 brought benefit to our code, we could bump it no higher than 1.94. As before, MSRV bumps will always be breaking changes.
48
67
49
68
By @cwfitzgerald in [#8999](https://github.com/gfx-rs/wgpu/pull/8999).
webgpu:api,validation,createBindGroupLayout:visibility,VERTEX_shader_stage_buffer_type:* // 25%, writable storage buffers not allowed in VERTEX
28
28
webgpu:api,validation,createBindGroupLayout:visibility,VERTEX_shader_stage_storage_texture_access:* // 25%, write-access storage textures not allowed in VERTEX
0 commit comments