mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-01-17 12:25:32 +00:00
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:
parent
e7fff3e435
commit
a188ef219c
|
@ -50,6 +50,7 @@ struct vk_bundle
|
||||||
enum u_logging_level log_level;
|
enum u_logging_level log_level;
|
||||||
|
|
||||||
VkInstance instance;
|
VkInstance instance;
|
||||||
|
uint32_t version;
|
||||||
VkPhysicalDevice physical_device;
|
VkPhysicalDevice physical_device;
|
||||||
int physical_device_index;
|
int physical_device_index;
|
||||||
VkDevice device;
|
VkDevice device;
|
||||||
|
|
|
@ -194,6 +194,8 @@ create_instance(struct vk_bundle *vk, const struct comp_vulkan_arguments *vk_arg
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
vk->version = vk_args->required_instance_version;
|
||||||
|
|
||||||
u_string_list_destroy(&instance_ext_list);
|
u_string_list_destroy(&instance_ext_list);
|
||||||
|
|
||||||
ret = vk_get_instance_functions(vk);
|
ret = vk_get_instance_functions(vk);
|
||||||
|
|
Loading…
Reference in a new issue