Lines Matching refs:caps
385 VkSurfaceCapabilitiesKHR caps; in resize_swapchain() local
387 ctx_.surface, &caps)); in resize_swapchain()
389 VkExtent2D extent = caps.currentExtent; in resize_swapchain()
396 if (extent.width < caps.minImageExtent.width) in resize_swapchain()
397 extent.width = caps.minImageExtent.width; in resize_swapchain()
398 else if (extent.width > caps.maxImageExtent.width) in resize_swapchain()
399 extent.width = caps.maxImageExtent.width; in resize_swapchain()
401 if (extent.height < caps.minImageExtent.height) in resize_swapchain()
402 extent.height = caps.minImageExtent.height; in resize_swapchain()
403 else if (extent.height > caps.maxImageExtent.height) in resize_swapchain()
404 extent.height = caps.maxImageExtent.height; in resize_swapchain()
410 if (image_count < caps.minImageCount) in resize_swapchain()
411 image_count = caps.minImageCount; in resize_swapchain()
412 else if (image_count > caps.maxImageCount) in resize_swapchain()
413 image_count = caps.maxImageCount; in resize_swapchain()
415 assert(caps.supportedUsageFlags & VK_IMAGE_USAGE_COLOR_ATTACHMENT_BIT); in resize_swapchain()
416 assert(caps.supportedTransforms & caps.currentTransform); in resize_swapchain()
417 assert(caps.supportedCompositeAlpha & (VK_COMPOSITE_ALPHA_OPAQUE_BIT_KHR | in resize_swapchain()
420 (caps.supportedCompositeAlpha & VK_COMPOSITE_ALPHA_INHERIT_BIT_KHR) ? in resize_swapchain()
457 swapchain_info.preTransform = caps.currentTransform;; in resize_swapchain()