Skip to content

Commit

Permalink
[vk] check that adapters are Vulkan compliant (#4718)
Browse files Browse the repository at this point in the history
  • Loading branch information
teoxoy authored Nov 17, 2023
1 parent c9ae35e commit 666f681
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions wgpu-hal/src/vulkan/adapter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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())
{
Expand Down

0 comments on commit 666f681

Please sign in to comment.