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
17 lines
468 B
Rust
17 lines
468 B
Rust
extern crate libloading;
|
|
use libloading::library_filename;
|
|
use std::path::Path;
|
|
|
|
#[cfg(target_os = "windows")]
|
|
const EXPECTED: &str = "audioengine.dll";
|
|
#[cfg(target_os = "linux")]
|
|
const EXPECTED: &str = "libaudioengine.so";
|
|
#[cfg(target_os = "macos")]
|
|
const EXPECTED: &str = "libaudioengine.dylib";
|
|
|
|
#[test]
|
|
fn test_library_filename() {
|
|
let name = "audioengine";
|
|
let resolved = library_filename(name);
|
|
assert!(Path::new(&resolved).ends_with(EXPECTED));
|
|
}
|