Skip to content

Commit

Permalink
Update wgpu/src/lib.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Jim Blandy <[email protected]>
  • Loading branch information
cwfitzgerald and jimblandy authored Jun 4, 2022
1 parent b7178b8 commit 882602f
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions wgpu/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -560,13 +560,13 @@ pub struct SubmissionIndex(<C as Context>::SubmissionIndex);
/// Passed to [`Device::poll`] to control how and if it should block.
#[derive(Clone)]
pub enum Maintain {
/// Block until the callbacks for the given submission will resolve on their own.
/// On native backends, block until the given submission has
/// completed execution, and any callbacks have been invoked.
///
/// On the web, this has no effect. Callbacks are invoked from the
/// window event loop.
///
/// If the submission index is None it will wait for the most recent submission.
///
/// On native this will block the thread until the submission is finished.
///
/// On web this is a no-op but all the callbacks will automatically fire.
/// If the submission index is `None`, wait for the most recent submission.
Wait(Option<SubmissionIndex>),
/// Check the device for a single time without blocking.
Poll,
Expand Down

0 comments on commit 882602f

Please sign in to comment.