Lines Matching refs:swapchainCreateInfo

470     VkSwapchainCreateInfoKHR swapchainCreateInfo;  in createSwapchain()  local
471 memset(&swapchainCreateInfo, 0, sizeof(VkSwapchainCreateInfoKHR)); in createSwapchain()
472 swapchainCreateInfo.sType = VK_STRUCTURE_TYPE_SWAPCHAIN_CREATE_INFO_KHR; in createSwapchain()
473 swapchainCreateInfo.surface = surface->mVkSurface; in createSwapchain()
474 swapchainCreateInfo.minImageCount = imageCount; in createSwapchain()
475 swapchainCreateInfo.imageFormat = surfaceFormat; in createSwapchain()
476 swapchainCreateInfo.imageColorSpace = colorSpace; in createSwapchain()
477 swapchainCreateInfo.imageExtent = extent; in createSwapchain()
478 swapchainCreateInfo.imageArrayLayers = 1; in createSwapchain()
479 swapchainCreateInfo.imageUsage = usageFlags; in createSwapchain()
483 swapchainCreateInfo.imageSharingMode = VK_SHARING_MODE_CONCURRENT; in createSwapchain()
484 swapchainCreateInfo.queueFamilyIndexCount = 2; in createSwapchain()
485 swapchainCreateInfo.pQueueFamilyIndices = queueFamilies; in createSwapchain()
487 swapchainCreateInfo.imageSharingMode = VK_SHARING_MODE_EXCLUSIVE; in createSwapchain()
488 swapchainCreateInfo.queueFamilyIndexCount = 0; in createSwapchain()
489 swapchainCreateInfo.pQueueFamilyIndices = nullptr; in createSwapchain()
492 swapchainCreateInfo.preTransform = VK_SURFACE_TRANSFORM_IDENTITY_BIT_KHR; in createSwapchain()
493 swapchainCreateInfo.compositeAlpha = composite_alpha; in createSwapchain()
494 swapchainCreateInfo.presentMode = mode; in createSwapchain()
495 swapchainCreateInfo.clipped = true; in createSwapchain()
496 swapchainCreateInfo.oldSwapchain = surface->mSwapchain; in createSwapchain()
498 res = mCreateSwapchainKHR(mBackendContext->fDevice, &swapchainCreateInfo, nullptr, in createSwapchain()
505 if (swapchainCreateInfo.oldSwapchain != VK_NULL_HANDLE) { in createSwapchain()
510 mDestroySwapchainKHR(mBackendContext->fDevice, swapchainCreateInfo.oldSwapchain, nullptr); in createSwapchain()