Skip to content

Commit

Permalink
vulkan: enable color space extension
Browse files Browse the repository at this point in the history
  • Loading branch information
kvark committed May 7, 2024
1 parent 27d34bc commit e35b2d4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions blade-graphics/src/vulkan/init.rs
Original file line number Diff line number Diff line change
Expand Up @@ -319,9 +319,14 @@ impl super::Context {
}
}
if supported_instance_extensions.contains(&vk::KHR_PORTABILITY_ENUMERATION_NAME) {
log::info!("Enabling Vulkan Portability");
instance_extensions.push(vk::KHR_PORTABILITY_ENUMERATION_NAME);
create_flags |= vk::InstanceCreateFlags::ENUMERATE_PORTABILITY_KHR;
}
if supported_instance_extensions.contains(&vk::EXT_SWAPCHAIN_COLORSPACE_NAME) {
log::info!("Enabling color space support");
instance_extensions.push(vk::EXT_SWAPCHAIN_COLORSPACE_NAME);
}

let app_info = vk::ApplicationInfo::default()
.engine_name(ffi::CStr::from_bytes_with_nul(b"blade\0").unwrap())
Expand Down

0 comments on commit e35b2d4

Please sign in to comment.