From 35c68be86633b7df3a3b7d31b62d8a375df864bf Mon Sep 17 00:00:00 2001 From: teoxoy <28601907+teoxoy@users.noreply.github.com> Date: Tue, 31 Mar 2026 21:43:13 +0200 Subject: [PATCH] add changelog entry --- CHANGELOG.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 81202c5de..ea52db5be 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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]`. 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