Skip to content

Commit

Permalink
comment improvement that I missed earlier
Browse files Browse the repository at this point in the history
  • Loading branch information
Wumpf committed Jun 2, 2024
1 parent ba06b26 commit 1f56788
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions wgpu/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3906,8 +3906,8 @@ impl CommandEncoder {
///
/// As long as the returned [`ComputePass`] has not ended,
/// any mutating operation on this command encoder causes an error and invalidates it.
/// Note that the lifetime constraint protects against this, but it is possible to opt out of it
/// by calling [`ComputePass::make_static`].
/// Note that the `'encoder` lifetime relationship protects against this,
/// but it is possible to opt out of it by calling [`ComputePass::make_static`].
/// This can be useful for runtime handling of the encoder->pass
/// dependency e.g. when pass and encoder are stored in the same data structure.
pub fn begin_compute_pass<'encoder>(
Expand Down

0 comments on commit 1f56788

Please sign in to comment.