mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-19 14:01:08 +01:00
Fix present synchronization (#9036)
This commit is contained in:
1 parent
7caf9fabc3
commit
78cd771dfd
2 files changed
+2
No files matched your search
@@ -161,6 +161,7 @@ depth_stencil: Some(wgpu::DepthStencilState::stencil(
|
||||
|
||||
#### General
|
||||
|
||||
- Fixed crash on nvidia cards when presenting from another thread. By @inner-daemons in [#9036](https://github.com/gfx-rs/wgpu/pull/9036).
|
||||
- BREAKING: Migrated from the `maxInterStageShaderComponents` limit to `maxInterStageShaderVariables`, which changes validation in a way that should not affect most programs. This follows the latest changes of the WebGPU spec. By @ErichDonGubler in [#8652](https://github.com/gfx-rs/wgpu/pull/8652), [#8792](https://github.com/gfx-rs/wgpu/pull/8792).
|
||||
- Tracing support has been restored. By @andyleiserson in [#8429](https://github.com/gfx-rs/wgpu/pull/8429).
|
||||
- Pipelines using passthrough shaders now correctly require explicit pipeline layout. By @inner-daemons in #8881.
|
||||
|
||||
@@ -302,6 +302,7 @@ impl Surface {
|
||||
Some(resource::TextureInner::Surface { raw }) => {
|
||||
let raw_surface = self.raw(device.backend()).unwrap();
|
||||
let raw_queue = queue.raw();
|
||||
let _fence_lock = device.fence.write();
|
||||
unsafe { raw_queue.present(raw_surface, raw) }
|
||||
}
|
||||
_ => unreachable!(),
|
||||
|
||||
Reference in new issue
Block a user