Currently the Vulkan backend is hardcoded to use version 1.0.0. Changing it to use the newest available version is easy:
let api_version_default = vk::make_version(1, 0, 0);
let api_version = entry
.try_enumerate_instance_version()
.unwrap_or(Some(api_version_default))
.unwrap_or(api_version_default);
trace!(
"Using Vulkan api version {}.{}.{}",
vk::version_major(api_version),
vk::version_minor(api_version),
vk::version_patch(api_version)
);
(and pass this to vk::ApplicationInfo)
However, it is currently unknown if this would break any existing API: Many inputs to the gfx-hal api are just passed on to Vulkan as-is. Need to map out changes to Vulkan core in 1.1/1.2/.. and figure out if anything could behave differently in newer versions.
Currently the Vulkan backend is hardcoded to use version 1.0.0. Changing it to use the newest available version is easy:
(and pass this to
vk::ApplicationInfo)However, it is currently unknown if this would break any existing API: Many inputs to the gfx-hal api are just passed on to Vulkan as-is. Need to map out changes to Vulkan core in 1.1/1.2/.. and figure out if anything could behave differently in newer versions.