mirror of
https://github.com/gfx-rs/wgpu.git
synced 2025-12-08 21:26:17 +00:00
style(CHANGELOG): fix up some style issues (#8397)
This commit is contained in:
parent
8ddd320cf2
commit
0f26cf29ca
11
CHANGELOG.md
11
CHANGELOG.md
@ -42,7 +42,7 @@ Bottom level categories:
|
||||
|
||||
### Major changes
|
||||
|
||||
#### 'wgpu::Instance::enumerate_adapters` is now `async` & available on WebGPU
|
||||
#### `wgpu::Instance::enumerate_adapters` is now `async` & available on WebGPU
|
||||
|
||||
BREAKING CHANGE: `enumerate_adapters` is now `async`:
|
||||
|
||||
@ -72,6 +72,7 @@ SamplerDescriptor {
|
||||
...
|
||||
}
|
||||
```
|
||||
|
||||
### Changes
|
||||
|
||||
#### General
|
||||
@ -121,7 +122,7 @@ SamplerDescriptor {
|
||||
|
||||
#### 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`.
|
||||
@ -178,6 +179,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 {
|
||||
@ -192,6 +194,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
|
||||
@ -228,7 +231,7 @@ 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`.
|
||||
|
||||
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`:
|
||||
|
||||
⚠️ 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());
|
||||
```
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user