[hal doc] Note wgpu_hal::Queue::submit's expectations for Fence.

This commit is contained in:
Jim Blandy 2024-07-16 18:01:44 -07:00
parent 69a1134e02
commit a47ed5dc1e

View File

@ -955,6 +955,9 @@ pub trait Queue: WasmNotSendSync {
/// - All calls to this function that include a given [`SurfaceTexture`][st] /// - All calls to this function that include a given [`SurfaceTexture`][st]
/// in `surface_textures` must use the same [`Fence`]. /// in `surface_textures` must use the same [`Fence`].
/// ///
/// - The [`Fence`] passed as `signal_fence.0` must remain alive until
/// all submissions that will signal it have completed.
///
/// [`Fence`]: Api::Fence /// [`Fence`]: Api::Fence
/// [cb]: Api::CommandBuffer /// [cb]: Api::CommandBuffer
/// [ce]: Api::CommandEncoder /// [ce]: Api::CommandEncoder