KhronosGroup / Vulkan-Samples

One stop solution for all Vulkan samples
Apache License 2.0
4.23k stars 634 forks source link

Use Vulkan API 1.0 support funcs for Vulkan API 1.0 samples memory_budget & dynamic_blending #1124

Closed SRSaunders closed 1 month ago

SRSaunders commented 1 month ago

Description

This PR replaces Vulkan 1.1 API support functions with Vulkan 1.0 equivalents within samples that specify Vulkan API 1.0: _memorybudget and _dynamicblending. It also does the same within VulkanStatsProvider::is_supported(), which is a utility that can be used with any Vulkan sample. This prevents runtime failures (undefined functions) on Vulkan drivers that enforce the specified API version.

I did not up-version the 2 samples to Vulkan API 1.1 since it appears that Vulkan API 1.0 was the intended API version, with extensions enabled by VK_KHR_get_physical_device_properties2.

Fixes #1123

General Checklist:

Please ensure the following points are checked:

Sample Checklist

If your PR contains a new or modified sample, these further checks must be carried out in addition to the General Checklist:

SaschaWillems commented 1 month ago

Good catch 👍🏻