Skip to content

Commit

Permalink
Test that Renderer + Scene are Send.
Browse files Browse the repository at this point in the history
Usages within Bevy and other frameworks are simpler when these
types are `Send`.
  • Loading branch information
waywardmonkeys committed Apr 22, 2024
1 parent 6c1e8b8 commit fe2f1f3
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -687,3 +687,15 @@ impl BlitPipeline {
}
}
}

#[cfg(test)]
mod tests {
fn is_send<T: Send>() {}

#[test]
fn check_send_sync() {
#[cfg(feature = "wgpu")]
is_send::<super::Renderer>();
is_send::<super::Scene>();
}
}

0 comments on commit fe2f1f3

Please sign in to comment.