mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-01-19 13:18:32 +00:00
aux/vk: Declare consistent usage for xr swapchain images
This commit is contained in:
parent
27d2163f37
commit
3f744331e1
|
@ -276,7 +276,8 @@ vk_create_image_from_fd(struct vk_bundle *vk,
|
||||||
VkImage *out_image,
|
VkImage *out_image,
|
||||||
VkDeviceMemory *out_mem)
|
VkDeviceMemory *out_mem)
|
||||||
{
|
{
|
||||||
VkImageUsageFlags image_usage = (VkImageUsageFlags)0;
|
VkImageUsageFlags image_usage =
|
||||||
|
VK_IMAGE_USAGE_COLOR_ATTACHMENT_BIT | VK_IMAGE_USAGE_SAMPLED_BIT;
|
||||||
VkImage image = VK_NULL_HANDLE;
|
VkImage image = VK_NULL_HANDLE;
|
||||||
VkResult ret = VK_SUCCESS;
|
VkResult ret = VK_SUCCESS;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue