mirror of
https://github.com/gfx-rs/wgpu.git
synced 2026-04-22 03:02:01 -04:00
[vk] check that adapters are Vulkan compliant (#4718)
This commit is contained in:
@@ -986,6 +986,15 @@ impl super::Instance {
|
||||
);
|
||||
};
|
||||
|
||||
if let Some(driver) = phd_capabilities.driver {
|
||||
if driver.conformance_version.major == 0 {
|
||||
log::warn!(
|
||||
"Adapter is not Vulkan compliant, hiding adapter: {}",
|
||||
info.name
|
||||
);
|
||||
return None;
|
||||
}
|
||||
}
|
||||
if phd_capabilities.device_api_version == vk::API_VERSION_1_0
|
||||
&& !phd_capabilities.supports_extension(vk::KhrStorageBufferStorageClassFn::name())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user