Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deprecate InstanceBuilder::set_minimum_instance_version, add InstanceBuilder::force_api_version, add SystemInfo::iis_instance_version_available #351

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

Allows users to check the Instance API version before
calling vkb::InstanceBuilder::build().
set_minimum_instance_version
This adds the ability for applications to set a specific API version
irrespective of the available Instance API version. This is useful when
application intends to use Physical Devices which are newer than the
Instance. api_versions specified by force_api_version() are propagated
to Physical Device selection as the minimum version.
@@ -819,6 +835,14 @@ InstanceBuilder& InstanceBuilder::set_minimum_instance_version(uint32_t major, u
info.minimum_instance_version = VKB_MAKE_VK_VERSION(0, major, minor, patch);
return *this;
}
InstanceBuilder& InstanceBuilder::force_api_version(uint32_t major, uint32_t minor) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't have any meaningful suggestions so I'll bikeshed the name

What about set_api_version? force_api_version makes so... forceful

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This use case is kinda "advanced" API usage, so a scary name helps ward away unsuspecting users.

Copy link
Contributor

@spencer-lunarg spencer-lunarg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can never have too many ways to set versions in Vulkan!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants