The open source OpenXR runtime
0
fork

Configure Feed

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

a/vk: Pass create mutable format bit if usage flag is set

+7
+7
src/xrt/auxiliary/vk/vk_image_allocator.c
··· 97 97 return VK_ERROR_FEATURE_NOT_PRESENT; 98 98 } 99 99 100 + // Set the image create mutable flag if usage mutable is given. 101 + bool has_mutable_usage = (info->bits & XRT_SWAPCHAIN_USAGE_MUTABLE_FORMAT) != 0; 102 + if (has_mutable_usage) { 103 + image_create_flags |= VK_IMAGE_CREATE_MUTABLE_FORMAT_BIT; 104 + } 105 + 106 + // Results of operations. 100 107 VkDeviceMemory device_memory = VK_NULL_HANDLE; 101 108 VkImage image = VK_NULL_HANDLE; 102 109 VkResult ret = VK_SUCCESS;