1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-01-06 04:46:17 +01:00

[dxvk] Use VK_MAKE_API_VERSION instead of VK_MAKE_VERSION.

The old macro is deprecated.
This commit is contained in:
Philip Rebohle 2024-05-17 20:39:18 +02:00 committed by Philip Rebohle
parent c1f665f92b
commit 2cb2f8694e
2 changed files with 5 additions and 5 deletions

View File

@ -17,10 +17,10 @@ namespace dxvk {
bool DxvkDeviceFilter::testAdapter(const VkPhysicalDeviceProperties& properties) const { bool DxvkDeviceFilter::testAdapter(const VkPhysicalDeviceProperties& properties) const {
if (properties.apiVersion < VK_MAKE_VERSION(1, 3, 0)) { if (properties.apiVersion < VK_MAKE_API_VERSION(0, 1, 3, 0)) {
Logger::warn(str::format("Skipping Vulkan ", Logger::warn(str::format("Skipping Vulkan ",
VK_VERSION_MAJOR(properties.apiVersion), ".", VK_API_VERSION_MAJOR(properties.apiVersion), ".",
VK_VERSION_MINOR(properties.apiVersion), " adapter: ", VK_API_VERSION_MINOR(properties.apiVersion), " adapter: ",
properties.deviceName)); properties.deviceName));
return false; return false;
} }

View File

@ -182,8 +182,8 @@ namespace dxvk {
appInfo.pApplicationName = appName.c_str(); appInfo.pApplicationName = appName.c_str();
appInfo.applicationVersion = flags.raw(); appInfo.applicationVersion = flags.raw();
appInfo.pEngineName = "DXVK"; appInfo.pEngineName = "DXVK";
appInfo.engineVersion = VK_MAKE_VERSION(2, 3, 2); appInfo.engineVersion = VK_MAKE_API_VERSION(0, 2, 3, 2);
appInfo.apiVersion = VK_MAKE_VERSION(1, 3, 0); appInfo.apiVersion = VK_MAKE_API_VERSION(0, 1, 3, 0);
VkInstanceCreateInfo info = { VK_STRUCTURE_TYPE_INSTANCE_CREATE_INFO }; VkInstanceCreateInfo info = { VK_STRUCTURE_TYPE_INSTANCE_CREATE_INFO };
info.pApplicationInfo = &appInfo; info.pApplicationInfo = &appInfo;