mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-25 17:01:15 +01:00
Fix up various unreleased CHANGELOG bits (#9195)
* style(CHANGELOG): ensure double newline b/w paragraph and fenced code blocks Regressed by <https://github.com/gfx-rs/wgpu/pull/9180>. I missed this in review. * docs(CHANGELOG): fix up formatting for #9141 * docs(CHANGELOG): clarify that `get_current_texture` in a `Surface` method
This commit is contained in:
1 parent
d540c4566e
commit
4ae6661898
1 file changed
+7
-2
+7
-2
@@ -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
|
||||
|
||||
Reference in new issue
Block a user