Skip to content

Commit

Permalink
DO NOT MERGE: dbg!(…) stmts. to debug CI
Browse files Browse the repository at this point in the history
  • Loading branch information
ErichDonGubler committed Feb 9, 2024
1 parent 11960c4 commit 4bc6b3e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions wgpu-hal/src/vulkan/instance.rs
Original file line number Diff line number Diff line change
Expand Up @@ -656,7 +656,7 @@ impl crate::Instance<super::Api> for super::Instance {

let validation_layer_name =
CStr::from_bytes_with_nul(b"VK_LAYER_KHRONOS_validation\0").unwrap();
let validation_layer_properties = find_layer(&instance_layers, validation_layer_name);
let validation_layer_properties = dbg!(find_layer(&instance_layers, validation_layer_name));
let validation_features_enabled = || {
validation_layer_properties.is_some().then(|| {
let exts = Self::enumerate_instance_extension_properties(
Expand All @@ -665,15 +665,15 @@ impl crate::Instance<super::Api> for super::Instance {
)?;
let mut ext_names = exts
.iter()
.filter_map(|ext| cstr_from_bytes_until_nul(&ext.extension_name));
.filter_map(|ext| cstr_from_bytes_until_nul(dbg!(&ext.extension_name)));
let found =
ext_names.any(|ext_name| ext_name == vk::ExtValidationFeaturesFn::name());
Ok(found)
})
};
let gpu_based_validation_enabled = desc
let gpu_based_validation_enabled = dbg!(desc
.flags
.intersects(wgt::InstanceFlags::GPU_BASED_VALIDATION)
.intersects(wgt::InstanceFlags::GPU_BASED_VALIDATION))
&& validation_features_enabled().transpose()?.unwrap_or(false);

let nv_optimus_layer = CStr::from_bytes_with_nul(b"VK_LAYER_NV_optimus\0").unwrap();
Expand Down

0 comments on commit 4bc6b3e

Please sign in to comment.