From 69fda60787e65a40323c5f0db7a0941112d20ac1 Mon Sep 17 00:00:00 2001 From: Erich Gubler Date: Tue, 21 Oct 2025 15:49:10 -0400 Subject: [PATCH] style: format `CHANGELOG.md` with `prettier` --- CHANGELOG.md | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 99c6112f7..b3790909e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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()); ```