mirror of
https://github.com/gfx-rs/wgpu.git
synced 2026-01-10 12:48:46 -05:00
[wgpu-core] introduce Registry .strict_get() & .strict_unregister() and use them for adapters
This works because we never assign errors to adapters (they are never invalid).
This commit is contained in:
@@ -78,7 +78,7 @@ fn main() {
|
||||
)
|
||||
.expect("Unable to find an adapter for selected backend");
|
||||
|
||||
let info = global.adapter_get_info(adapter).unwrap();
|
||||
let info = global.adapter_get_info(adapter);
|
||||
log::info!("Picked '{}'", info.name);
|
||||
let device_id = wgc::id::Id::zip(1, 0, backend);
|
||||
let queue_id = wgc::id::Id::zip(1, 0, backend);
|
||||
|
||||
@@ -244,8 +244,8 @@ impl Corpus {
|
||||
};
|
||||
|
||||
println!("\tBackend {:?}", backend);
|
||||
let supported_features = global.adapter_features(adapter).unwrap();
|
||||
let downlevel_caps = global.adapter_downlevel_capabilities(adapter).unwrap();
|
||||
let supported_features = global.adapter_features(adapter);
|
||||
let downlevel_caps = global.adapter_downlevel_capabilities(adapter);
|
||||
|
||||
let test = Test::load(dir.join(test_path), adapter.backend());
|
||||
if !supported_features.contains(test.features) {
|
||||
|
||||
Reference in New Issue
Block a user