From fe2f1f3b395b6fbedc45f711549514bd029e2ef6 Mon Sep 17 00:00:00 2001 From: Bruce Mitchener Date: Mon, 22 Apr 2024 11:13:47 +0700 Subject: [PATCH] Test that `Renderer` + `Scene` are `Send`. Usages within Bevy and other frameworks are simpler when these types are `Send`. --- src/lib.rs | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/lib.rs b/src/lib.rs index ed56b5ff6..5dc018f83 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -687,3 +687,15 @@ impl BlitPipeline { } } } + +#[cfg(test)] +mod tests { + fn is_send() {} + + #[test] + fn check_send_sync() { + #[cfg(feature = "wgpu")] + is_send::(); + is_send::(); + } +}