mirror of
https://github.com/gfx-rs/wgpu.git
synced 2024-11-22 06:44:14 +00:00
[vk] check that adapters are Vulkan compliant (#4718)
This commit is contained in:
parent
c9ae35edbb
commit
666f681dae
@ -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())
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user