The open source OpenXR runtime
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

vk: Add support for XRT_SWAPCHAIN_USAGE_INPUT_ATTACHMENT

authored by

Jakob Bornecrantz and committed by
Jakob Bornecrantz
ce7da394 b64d683f

+6
+3
src/xrt/auxiliary/vk/vk_helpers.c
··· 296 296 if ((info->bits & XRT_SWAPCHAIN_USAGE_SAMPLED) != 0) { 297 297 image_usage |= VK_IMAGE_USAGE_SAMPLED_BIT; 298 298 } 299 + if ((info->bits & XRT_SWAPCHAIN_USAGE_INPUT_ATTACHMENT) != 0) { 300 + image_usage |= VK_IMAGE_USAGE_INPUT_ATTACHMENT_BIT; 301 + } 299 302 300 303 VkImageCreateInfo vk_info = { 301 304 .sType = VK_STRUCTURE_TYPE_IMAGE_CREATE_INFO,
+3
src/xrt/auxiliary/vk/vk_image_allocator.c
··· 87 87 if ((info->bits & XRT_SWAPCHAIN_USAGE_SAMPLED) != 0) { 88 88 image_usage |= VK_IMAGE_USAGE_SAMPLED_BIT; 89 89 } 90 + if ((info->bits & XRT_SWAPCHAIN_USAGE_INPUT_ATTACHMENT) != 0) { 91 + image_usage |= VK_IMAGE_USAGE_INPUT_ATTACHMENT_BIT; 92 + } 90 93 91 94 VkImageCreateInfo create_info = { 92 95 .sType = VK_STRUCTURE_TYPE_IMAGE_CREATE_INFO,