a/vk: Track VK_KHR_format_feature_flags2

This commit is contained in:
Jakob Bornecrantz 2022-12-15 11:44:31 +00:00
parent 3dc0415374
commit b7addee249
3 changed files with 10 additions and 0 deletions

View file

@ -258,6 +258,7 @@ INSTANCE_EXTENSIONS_TO_CHECK = [
DEVICE_EXTENSIONS_TO_CHECK = [
"VK_KHR_external_fence_fd",
"VK_KHR_external_semaphore_fd",
"VK_KHR_format_feature_flags2",
"VK_KHR_global_priority",
"VK_KHR_image_format_list",
"VK_KHR_maintenance1",

View file

@ -641,6 +641,7 @@ fill_in_has_device_extensions(struct vk_bundle *vk, struct u_string_list *ext_li
// Reset before filling out.
vk->has_KHR_external_fence_fd = false;
vk->has_KHR_external_semaphore_fd = false;
vk->has_KHR_format_feature_flags2 = false;
vk->has_KHR_global_priority = false;
vk->has_KHR_image_format_list = false;
vk->has_KHR_maintenance1 = false;
@ -676,6 +677,13 @@ fill_in_has_device_extensions(struct vk_bundle *vk, struct u_string_list *ext_li
}
#endif // defined(VK_KHR_external_semaphore_fd)
#if defined(VK_KHR_format_feature_flags2)
if (strcmp(ext, VK_KHR_FORMAT_FEATURE_FLAGS_2_EXTENSION_NAME) == 0) {
vk->has_KHR_format_feature_flags2 = true;
continue;
}
#endif // defined(VK_KHR_format_feature_flags2)
#if defined(VK_KHR_global_priority)
if (strcmp(ext, VK_KHR_GLOBAL_PRIORITY_EXTENSION_NAME) == 0) {
vk->has_KHR_global_priority = true;

View file

@ -120,6 +120,7 @@ struct vk_bundle
// beginning of GENERATED device extension code - do not modify - used by scripts
bool has_KHR_external_fence_fd;
bool has_KHR_external_semaphore_fd;
bool has_KHR_format_feature_flags2;
bool has_KHR_global_priority;
bool has_KHR_image_format_list;
bool has_KHR_maintenance1;