Skip to content

Commit

Permalink
[vk] Use ash's definition of ENUMERATE_PORTABILITY_KHR.
Browse files Browse the repository at this point in the history
Use the `ash` crate's definition of
`vk::InstanceCreateFlags::ENUMERATE_PORTABILITY_KHR` in
`wgpu_hal::vulkan::Instance::init`, rather than re-declaring it
locally ourselves.
  • Loading branch information
jimblandy committed Aug 11, 2023
1 parent e36c560 commit 9dfb65b
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions wgpu-hal/src/vulkan/instance.rs
Original file line number Diff line number Diff line change
Expand Up @@ -667,11 +667,8 @@ impl crate::Instance<super::Api> for super::Instance {
})
.collect::<Vec<_>>();

const VK_INSTANCE_CREATE_ENUMERATE_PORTABILITY_BIT_KHR: u32 = 0x00000001;
let create_info = vk::InstanceCreateInfo::builder()
.flags(vk::InstanceCreateFlags::from_raw(
VK_INSTANCE_CREATE_ENUMERATE_PORTABILITY_BIT_KHR,
))
.flags(vk::InstanceCreateFlags::ENUMERATE_PORTABILITY_KHR)
.application_info(&app_info)
.enabled_layer_names(&str_pointers[..layers.len()])
.enabled_extension_names(&str_pointers[layers.len()..]);
Expand Down

0 comments on commit 9dfb65b

Please sign in to comment.