mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-11-06 03:09:18 +02:00
This is another WebGPU API update, it picks up a lot of changes that were made recently: - new bind group layout - new render pipeline descriptor - new vertex formats - limits - compressed texture formats - index format - query sets - and more small ones! It also brings in the updated `gfx/wgpu` to support these API changes. Differential Revision: https://phabricator.services.mozilla.com/D107013
96 lines
1.9 KiB
Rust
96 lines
1.9 KiB
Rust
extern crate libloading;
|
|
|
|
#[cfg(test)]
|
|
fn assert_send<T: Send>() {}
|
|
#[cfg(test)]
|
|
fn assert_sync<T: Sync>() {}
|
|
#[cfg(test)]
|
|
fn assert_display<T: std::fmt::Display>() {}
|
|
|
|
#[test]
|
|
fn check_error_send() {
|
|
assert_send::<libloading::Error>();
|
|
}
|
|
|
|
#[test]
|
|
fn check_error_sync() {
|
|
assert_sync::<libloading::Error>();
|
|
}
|
|
|
|
#[test]
|
|
fn check_error_display() {
|
|
assert_display::<libloading::Error>();
|
|
}
|
|
|
|
#[test]
|
|
fn check_library_send() {
|
|
assert_send::<libloading::Library>();
|
|
}
|
|
|
|
#[cfg(unix)]
|
|
#[test]
|
|
fn check_unix_library_send() {
|
|
assert_send::<libloading::os::unix::Library>();
|
|
}
|
|
|
|
#[cfg(windows)]
|
|
#[test]
|
|
fn check_windows_library_send() {
|
|
assert_send::<libloading::os::windows::Library>();
|
|
}
|
|
|
|
#[test]
|
|
fn check_library_sync() {
|
|
assert_sync::<libloading::Library>();
|
|
}
|
|
|
|
#[cfg(unix)]
|
|
#[test]
|
|
fn check_unix_library_sync() {
|
|
assert_sync::<libloading::os::unix::Library>();
|
|
}
|
|
|
|
#[cfg(windows)]
|
|
#[test]
|
|
fn check_windows_library_sync() {
|
|
assert_sync::<libloading::os::windows::Library>();
|
|
}
|
|
|
|
#[test]
|
|
fn check_symbol_send() {
|
|
assert_send::<libloading::Symbol<fn() -> ()>>();
|
|
// assert_not_send::<libloading::Symbol<*const ()>>();
|
|
}
|
|
|
|
#[cfg(unix)]
|
|
#[test]
|
|
fn check_unix_symbol_send() {
|
|
assert_send::<libloading::os::unix::Symbol<fn() -> ()>>();
|
|
// assert_not_send::<libloading::os::unix::Symbol<*const ()>>();
|
|
}
|
|
|
|
#[cfg(windows)]
|
|
#[test]
|
|
fn check_windows_symbol_send() {
|
|
assert_send::<libloading::os::windows::Symbol<fn() -> ()>>();
|
|
}
|
|
|
|
#[test]
|
|
fn check_symbol_sync() {
|
|
assert_sync::<libloading::Symbol<fn() -> ()>>();
|
|
// assert_not_sync::<libloading::Symbol<*const ()>>();
|
|
}
|
|
|
|
#[cfg(unix)]
|
|
#[test]
|
|
fn check_unix_symbol_sync() {
|
|
assert_sync::<libloading::os::unix::Symbol<fn() -> ()>>();
|
|
// assert_not_sync::<libloading::os::unix::Symbol<*const ()>>();
|
|
}
|
|
|
|
#[cfg(windows)]
|
|
#[test]
|
|
fn check_windows_symbol_sync() {
|
|
assert_sync::<libloading::os::windows::Symbol<fn() -> ()>>();
|
|
// assert_not_sync::<libloading::os::windows::Symbol<*const ()>>();
|
|
}
|