mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-24 08:21:25 +01:00
style: format CHANGELOG.md with prettier
This commit is contained in:
1 parent
787aa723a1
commit
69fda60787
1 file changed
+5
-4
+5
-4
@@ -74,7 +74,7 @@ Bottom level categories:
|
||||
|
||||
#### Deferred command buffer actions: `map_buffer_on_submit` and `on_submitted_work_done`
|
||||
|
||||
You may schedule buffer mapping and a submission-complete callback to run automatically after you submit, directly from encoders, command buffers, and passes.
|
||||
You may schedule buffer mapping and a submission-complete callback to run automatically after you submit, directly from encoders, command buffers, and passes.
|
||||
|
||||
```rust
|
||||
// Record some GPU work so the submission isn't empty and touches `buffer`.
|
||||
@@ -131,6 +131,7 @@ By @Vecvec in [#7913](https://github.com/gfx-rs/wgpu/pull/7913).
|
||||
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)
|
||||
|
||||
Difference for SPIR-V passthrough:
|
||||
|
||||
```diff
|
||||
- device.create_shader_module_passthrough(wgpu::ShaderModuleDescriptorPassthrough::SpirV(
|
||||
- wgpu::ShaderModuleDescriptorSpirV {
|
||||
@@ -145,6 +146,7 @@ Difference for SPIR-V passthrough:
|
||||
+ ..Default::default()
|
||||
})
|
||||
```
|
||||
|
||||
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.
|
||||
|
||||
#### Buffer mapping apis no longer have lifetimes
|
||||
@@ -181,14 +183,13 @@ By @cwfitzgerald in [#8163](https://github.com/gfx-rs/wgpu/pull/8163).
|
||||
|
||||
#### Multi-draw indirect is now unconditionally supported when indirect draws are supported
|
||||
|
||||
We have removed `Features::MULTI_DRAW_INDIRECT` as it was unconditionally available on all platforms.
|
||||
We have removed `Features::MULTI_DRAW_INDIRECT` as it was unconditionally available on all platforms.
|
||||
`RenderPass::multi_draw_indirect` is now available if the device supports downlevel flag `DownlevelFlags::INDIRECT_EXECUTION`.
|
||||
|
||||
The `Feature::MULTI_DRAW_INDIRECT_COUNT` feature can be used to determine if multi-draw is supported natively on the device. This is helpful to know if you are using spirv-passthrough and `gl_DrawID` in your shaders.
|
||||
|
||||
By @cwfitzgerald in [#8162](https://github.com/gfx-rs/wgpu/pull/8162).
|
||||
|
||||
|
||||
#### `wgpu::PollType::Wait` has now an optional timeout
|
||||
|
||||
We removed `wgpu::PollType::WaitForSubmissionIndex` and added fields to `wgpu::PollType::Wait` in order to express timeouts.
|
||||
@@ -218,8 +219,8 @@ Before/after for `wgpu::PollType::WaitForSubmissionIndex`:
|
||||
|
||||
⚠️ Previously, both `wgpu::PollType::WaitForSubmissionIndex` and `wgpu::PollType::Wait` had a hard-coded timeout of 60 seconds.
|
||||
|
||||
|
||||
To wait indefinitely on the latest submission, you can also use the `wait_indefinitely` convenience function:
|
||||
|
||||
```rust
|
||||
device.poll(wgpu::PollType::wait_indefinitely());
|
||||
```
|
||||
|
||||
Reference in new issue
Block a user