a/vk: Expose vk_select_physical_device function

This commit is contained in:
Jakob Bornecrantz 2022-11-15 00:47:42 +00:00
parent d8eb6865da
commit 93fdf0bd74
2 changed files with 14 additions and 0 deletions

View file

@ -944,6 +944,12 @@ filter_device_features(struct vk_bundle *vk,
*
*/
VkResult
vk_select_physical_device(struct vk_bundle *vk, int forced_index)
{
return select_physical_device(vk, forced_index);
}
XRT_CHECK_RESULT VkResult
vk_create_device(struct vk_bundle *vk,
int forced_index,

View file

@ -618,6 +618,14 @@ vk_build_instance_extensions(struct vk_bundle *vk,
void
vk_fill_in_has_instance_extensions(struct vk_bundle *vk, struct u_string_list *ext_list);
/*!
* Setup the physical device, this is called by vk_create_device but has uses
* for outside of that.
*
* @ingroup aux_vk
*/
VkResult
vk_select_physical_device(struct vk_bundle *vk, int forced_index);
/*!
* Used to enable device features as a argument @ref vk_create_device.