From 4ae6661898907c474cb94c14d370f3ea7dce106f Mon Sep 17 00:00:00 2001 From: Erich Gubler Date: Tue, 10 Mar 2026 18:00:13 -0600 Subject: [PATCH] Fix up various unreleased `CHANGELOG` bits (#9195) * style(CHANGELOG): ensure double newline b/w paragraph and fenced code blocks Regressed by . I missed this in review. * docs(CHANGELOG): fix up formatting for #9141 * docs(CHANGELOG): clarify that `get_current_texture` in a `Surface` method --- CHANGELOG.md | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d30373125..54fbf6881 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -78,6 +78,7 @@ BREAKING CHANGE: The `depth_write_enabled` and `depth_compare` members of `Depth There is also a new constructor `DepthStencilState::stencil` which may be used instead of a struct literal for stencil operations. Example 1: A configuration that does a depth test and writes updated values: + ```diff depth_stencil: Some(wgpu::DepthStencilState { format: wgpu::TextureFormat::Depth32Float, @@ -91,6 +92,7 @@ Example 1: A configuration that does a depth test and writes updated values: ``` Example 2: A configuration with only stencil: + ```diff depth_stencil: Some(wgpu::DepthStencilState { format: wgpu::TextureFormat::Stencil8, @@ -104,6 +106,7 @@ Example 2: A configuration with only stencil: ``` Example 3: The previous example written using the new `stencil()` constructor: + ```rust depth_stencil: Some(wgpu::DepthStencilState::stencil( wgpu::TextureFormat::Stencil8, @@ -111,8 +114,9 @@ depth_stencil: Some(wgpu::DepthStencilState::stencil( )), ``` -#### Other breaking changes -- ⚠️ `get_current_texture` can now return `SurfaceError::Occluded` [#9141](https://github.com/gfx-rs/wgpu/pull/9141) +#### Other Breaking Changes + +- `Surface::get_current_texture` can now return `SurfaceError::Occluded`. By @emilk in [#9141](https://github.com/gfx-rs/wgpu/pull/9141). ### New Features @@ -228,6 +232,7 @@ depth_stencil: Some(wgpu::DepthStencilState::stencil( - Fixed a variety of mesh shader SPIR-V writer issues from the original implementation. By @inner-daemons in [#8756](https://github.com/gfx-rs/wgpu/pull/8756) #### Metal / macOS + - Fix one-second delay when switching a wgpu app to the foreground. By [@emilk](https://github.com/emilk) in [#9141](https://github.com/gfx-rs/wgpu/pull/9141) #### GLES