Skip to content

Commit 0f26cf2

Browse files
style(CHANGELOG): fix up some style issues (#8397)
1 parent 8ddd320 commit 0f26cf2

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

CHANGELOG.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ Bottom level categories:
4242

4343
### Major changes
4444

45-
#### 'wgpu::Instance::enumerate_adapters` is now `async` & available on WebGPU
45+
#### `wgpu::Instance::enumerate_adapters` is now `async` & available on WebGPU
4646

4747
BREAKING CHANGE: `enumerate_adapters` is now `async`:
4848

@@ -72,6 +72,7 @@ SamplerDescriptor {
7272
...
7373
}
7474
```
75+
7576
### Changes
7677

7778
#### General
@@ -121,7 +122,7 @@ SamplerDescriptor {
121122

122123
#### Deferred command buffer actions: `map_buffer_on_submit` and `on_submitted_work_done`
123124

124-
You may schedule buffer mapping and a submission-complete callback to run automatically after you submit, directly from encoders, command buffers, and passes.
125+
You may schedule buffer mapping and a submission-complete callback to run automatically after you submit, directly from encoders, command buffers, and passes.
125126

126127
```rust
127128
// Record some GPU work so the submission isn't empty and touches `buffer`.
@@ -178,6 +179,7 @@ By @Vecvec in [#7913](https://github.com/gfx-rs/wgpu/pull/7913).
178179
We have added `Features::EXPERIMENTAL_PRECOMPILED_SHADERS`, replacing existing passthrough types with a unified `CreateShaderModuleDescriptorPassthrough` which allows passing multiple shader codes for different backends. By @SupaMaggie70Incorporated in [#7834](https://github.com/gfx-rs/wgpu/pull/7834)
179180

180181
Difference for SPIR-V passthrough:
182+
181183
```diff
182184
- device.create_shader_module_passthrough(wgpu::ShaderModuleDescriptorPassthrough::SpirV(
183185
- wgpu::ShaderModuleDescriptorSpirV {
@@ -192,6 +194,7 @@ Difference for SPIR-V passthrough:
192194
+ ..Default::default()
193195
})
194196
```
197+
195198
This allows using precompiled shaders without manually checking which backend's code to pass, for example if you have shaders precompiled for both DXIL and SPIR-V.
196199

197200
#### Buffer mapping apis no longer have lifetimes
@@ -228,7 +231,7 @@ By @cwfitzgerald in [#8163](https://github.com/gfx-rs/wgpu/pull/8163).
228231

229232
#### Multi-draw indirect is now unconditionally supported when indirect draws are supported
230233

231-
We have removed `Features::MULTI_DRAW_INDIRECT` as it was unconditionally available on all platforms.
234+
We have removed `Features::MULTI_DRAW_INDIRECT` as it was unconditionally available on all platforms.
232235
`RenderPass::multi_draw_indirect` is now available if the device supports downlevel flag `DownlevelFlags::INDIRECT_EXECUTION`.
233236

234237
If you are using spirv-passthrough with multi-draw indirect and `gl_DrawID`, you can know if `MULTI_DRAW_INDIRECT` is being emulated
@@ -265,8 +268,8 @@ Before/after for `wgpu::PollType::WaitForSubmissionIndex`:
265268

266269
⚠️ Previously, both `wgpu::PollType::WaitForSubmissionIndex` and `wgpu::PollType::Wait` had a hard-coded timeout of 60 seconds.
267270

268-
269271
To wait indefinitely on the latest submission, you can also use the `wait_indefinitely` convenience function:
272+
270273
```rust
271274
device.poll(wgpu::PollType::wait_indefinitely());
272275
```

0 commit comments

Comments
 (0)