Skip to content

Commit

Permalink
Target VK 1.3 instance for now.
Browse files Browse the repository at this point in the history
RDoc and VVL struggles a bit understanding 1.4 in some cases right now.
  • Loading branch information
Themaister committed Dec 18, 2024
1 parent fb21132 commit f787a83
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions vulkan/context.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -548,8 +548,9 @@ VkApplicationInfo Context::get_promoted_application_info() const
// Granite min-req is 1.1.
app_info.apiVersion = std::max(VK_API_VERSION_1_1, app_info.apiVersion);

// Target Vulkan 1.4 if available.
app_info.apiVersion = std::max(app_info.apiVersion, std::min(VK_API_VERSION_1_4, volkGetInstanceVersion()));
// Target Vulkan 1.4 if available,
// but the tooling ecosystem isn't quite ready for this yet, so stick to 1.3 for the time being.
app_info.apiVersion = std::max(app_info.apiVersion, std::min(VK_API_VERSION_1_3, volkGetInstanceVersion()));

return app_info;
}
Expand Down

0 comments on commit f787a83

Please sign in to comment.