Skip to content

Commit

Permalink
changelog entry
Browse files Browse the repository at this point in the history
  • Loading branch information
Wumpf committed Sep 16, 2023
1 parent c507a92 commit 62dfa52
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,28 @@ let render_pass = encoder.begin_render_pass(&wgpu::RenderPassDescriptor {

By @Valaphee in [#3402](https://github.com/gfx-rs/wgpu/pull/3402)


#### Render pass store operation is now an enum

`wgpu::Operations::store` used to be an underdocumented boolean value,
causing missunderstandings of the effect of setting it to `false`.

The API now resembles WebGPU which distinguishes `store` and `discard`,
see [WebGPU spec on GPUStoreOp](https://gpuweb.github.io/gpuweb/#enumdef-gpustoreop).

```diff
// ...
depth_ops: Some(wgpu::Operations {
load: wgpu::LoadOp::Clear(1.0),
- store: false,
+ store: wgpu::StoreOp::Discard,
}),
// ...
```

By @wumpf in [#4147](https://github.com/gfx-rs/wgpu/pull/4147)


### Added/New Features

- Add `gles_minor_version` field to `wgpu::InstanceDescriptor`. By @PJB3005 in [#3998](https://github.com/gfx-rs/wgpu/pull/3998)
Expand Down

0 comments on commit 62dfa52

Please sign in to comment.