Skip to content

Commit a47ed5d

Browse files
committed
[hal doc] Note wgpu_hal::Queue::submit's expectations for Fence.
1 parent 69a1134 commit a47ed5d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

wgpu-hal/src/lib.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -955,6 +955,9 @@ pub trait Queue: WasmNotSendSync {
955955
/// - All calls to this function that include a given [`SurfaceTexture`][st]
956956
/// in `surface_textures` must use the same [`Fence`].
957957
///
958+
/// - The [`Fence`] passed as `signal_fence.0` must remain alive until
959+
/// all submissions that will signal it have completed.
960+
///
958961
/// [`Fence`]: Api::Fence
959962
/// [cb]: Api::CommandBuffer
960963
/// [ce]: Api::CommandEncoder

0 commit comments

Comments
 (0)