a/vk: Copy formats for image_format_list
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2666>
1136 unmodified linesExpand all113711381139114011411142114311441145114611471148114511491150115111521153595 unmodified linesExpand all1136 unmodified linesExpand all .handleTypes = handle_type, };
#ifdef VK_KHR_image_format_list VkFormat formats[XRT_MAX_SWAPCHAIN_CREATE_INFO_FORMAT_LIST_COUNT] = {0}; for (uint32_t i = 0; i < info->format_count; ++i) { formats[i] = (VkFormat)(info->formats[i]); } VkImageFormatListCreateInfoKHR image_format_list_create_info = { .sType = VK_STRUCTURE_TYPE_IMAGE_FORMAT_LIST_CREATE_INFO_KHR, .pNext = NULL, .viewFormatCount = info->format_count, .pViewFormats = info->formats, .pViewFormats = formats, }; const bool has_mutable_format_list = has_mutable_usage && vk->has_KHR_image_format_list && info->format_count > 0; if (has_mutable_format_list) {595 unmodified linesExpand all