Skip to content

Commit

Permalink
Clamp vulkan physical devices to highest supported version
Browse files Browse the repository at this point in the history
  • Loading branch information
baldurk committed Dec 13, 2024
1 parent f12642d commit cd603f0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions renderdoc/driver/vulkan/wrappers/vk_get_funcs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,10 @@ void ClampPhysDevAPIVersion(VkPhysicalDeviceProperties *pProperties, VkPhysicalD
pProperties->apiVersion = VK_API_VERSION_1_2;
}
}

// clamp to highest supported API version, currently vulkan 1.3, because loader no longer does this for us
if(pProperties->apiVersion > VK_API_VERSION_1_3)
pProperties->apiVersion = VK_API_VERSION_1_3;
}

void WrappedVulkan::vkGetPhysicalDeviceFeatures(VkPhysicalDevice physicalDevice,
Expand Down

0 comments on commit cd603f0

Please sign in to comment.