a/vk: Store vulkan version in vk_bundle

Also adds code in c/util's Vulkan code to store it.
This commit is contained in:
Christoph Haag 2023-01-20 14:11:36 +01:00 committed by Jakob Bornecrantz
parent e7fff3e435
commit a188ef219c
2 changed files with 3 additions and 0 deletions

View file

@ -50,6 +50,7 @@ struct vk_bundle
enum u_logging_level log_level;
VkInstance instance;
uint32_t version;
VkPhysicalDevice physical_device;
int physical_device_index;
VkDevice device;

View file

@ -194,6 +194,8 @@ create_instance(struct vk_bundle *vk, const struct comp_vulkan_arguments *vk_arg
return ret;
}
vk->version = vk_args->required_instance_version;
u_string_list_destroy(&instance_ext_list);
ret = vk_get_instance_functions(vk);