Skip to content

Investigate using Vulkan api version 1.1+ #3302

@Wumpf

Description

@Wumpf

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions