Lines Matching refs:swapchain_info

465     VkSwapchainCreateInfoKHR swapchain_info = {};  in resize_swapchain()  local
466 swapchain_info.sType = VK_STRUCTURE_TYPE_SWAPCHAIN_CREATE_INFO_KHR; in resize_swapchain()
467 swapchain_info.surface = ctx_.surface; in resize_swapchain()
468 swapchain_info.minImageCount = image_count; in resize_swapchain()
469 swapchain_info.imageFormat = ctx_.format.format; in resize_swapchain()
470 swapchain_info.imageColorSpace = ctx_.format.colorSpace; in resize_swapchain()
471 swapchain_info.imageExtent = extent; in resize_swapchain()
472 swapchain_info.imageArrayLayers = 1; in resize_swapchain()
473 swapchain_info.imageUsage = VK_IMAGE_USAGE_COLOR_ATTACHMENT_BIT; in resize_swapchain()
479 swapchain_info.imageSharingMode = VK_SHARING_MODE_CONCURRENT; in resize_swapchain()
480 swapchain_info.queueFamilyIndexCount = (uint32_t)queue_families.size(); in resize_swapchain()
481 swapchain_info.pQueueFamilyIndices = queue_families.data(); in resize_swapchain()
483 swapchain_info.imageSharingMode = VK_SHARING_MODE_EXCLUSIVE; in resize_swapchain()
486 swapchain_info.preTransform = caps.currentTransform;; in resize_swapchain()
487 swapchain_info.compositeAlpha = composite_alpha; in resize_swapchain()
488 swapchain_info.presentMode = mode; in resize_swapchain()
489 swapchain_info.clipped = true; in resize_swapchain()
490 swapchain_info.oldSwapchain = ctx_.swapchain; in resize_swapchain()
492 vk::assert_success(vk::CreateSwapchainKHR(ctx_.dev, &swapchain_info, nullptr, &ctx_.swapchain)); in resize_swapchain()
496 if (swapchain_info.oldSwapchain != VK_NULL_HANDLE) { in resize_swapchain()
500 vk::DestroySwapchainKHR(ctx_.dev, swapchain_info.oldSwapchain, nullptr); in resize_swapchain()