mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-20 14:31:08 +01:00
add changelog entry
This commit is contained in:
1 parent
67b4f3c7e5
commit
35c68be866
1 file changed
+20
@@ -42,6 +42,26 @@ Bottom level categories:
|
||||
|
||||
## Unreleased
|
||||
|
||||
### Major changes
|
||||
|
||||
#### Optional vertex buffer slots
|
||||
|
||||
This allows gaps in `VertexState`'s `buffers` and adds support for unbinding vertex buffers, bringing us in compliance with the WebGPU spec. As a result of this, `VertexState`'s `buffers` field now has type of `&[Option<VertexBufferLayout>]`. To migrate, wrap vertex buffer layouts in `Some`:
|
||||
|
||||
```diff
|
||||
let vertex_state = wgpu::VertexState {
|
||||
module: &vs_module,
|
||||
entry_point: Some("vs_main"),
|
||||
compilation_options: wgpu::PipelineCompilationOptions::default(),
|
||||
buffers: &[
|
||||
- &vertex_buffer_layout
|
||||
+ Some(&vertex_buffer_layout)
|
||||
],
|
||||
};
|
||||
```
|
||||
|
||||
By @teoxoy in [#9351](https://github.com/gfx-rs/wgpu/pull/9351).
|
||||
|
||||
### Added/New Features
|
||||
|
||||
#### General
|
||||
|
||||
Reference in new issue
Block a user